refactor
This commit is contained in:
parent
66c05f9093
commit
45d6f4b0f3
205 changed files with 9040 additions and 342 deletions
68
modules/nixos/suites/common/default.nix
Normal file
68
modules/nixos/suites/common/default.nix
Normal file
|
@ -0,0 +1,68 @@
|
|||
{ options
|
||||
, config
|
||||
, lib
|
||||
, pkgs
|
||||
, ...
|
||||
}:
|
||||
with lib;
|
||||
with lib.plusultra; let
|
||||
cfg = config.plusultra.suites.common;
|
||||
in
|
||||
{
|
||||
options.plusultra.suites.common = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable common configuration.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = [
|
||||
pkgs.plusultra.list-iommu
|
||||
];
|
||||
|
||||
plusultra = {
|
||||
nix = enabled;
|
||||
|
||||
# TODO: Enable this once Attic is configured again.
|
||||
# cache.public = enabled;
|
||||
|
||||
cli-apps = {
|
||||
flake = enabled;
|
||||
thaw = enabled;
|
||||
};
|
||||
|
||||
tools = {
|
||||
git = enabled;
|
||||
misc = enabled;
|
||||
fup-repl = enabled;
|
||||
comma = enabled;
|
||||
nix-ld = enabled;
|
||||
bottom = enabled;
|
||||
};
|
||||
|
||||
hardware = {
|
||||
audio = enabled;
|
||||
storage = enabled;
|
||||
networking = enabled;
|
||||
};
|
||||
|
||||
services = {
|
||||
printing = enabled;
|
||||
openssh = enabled;
|
||||
tailscale = enabled;
|
||||
};
|
||||
|
||||
security = {
|
||||
gpg = enabled;
|
||||
doas = enabled;
|
||||
keyring = enabled;
|
||||
};
|
||||
|
||||
system = {
|
||||
boot = enabled;
|
||||
fonts = enabled;
|
||||
locale = enabled;
|
||||
time = enabled;
|
||||
xkb = enabled;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue