diff options
author | Silas Schöffel <sils@sils.li> | 2024-04-19 20:37:53 +0200 |
---|---|---|
committer | Silas Schöffel <sils@sils.li> | 2024-04-19 20:37:53 +0200 |
commit | 18f14ac391735bb2280f0c3efb58726afb600ea3 (patch) | |
tree | bc4762870ec8d08abcc2e874b8e0c077838b9a28 | |
parent | basesystem: make module toggleable (diff) | |
download | nix-config-18f14ac391735bb2280f0c3efb58726afb600ea3.tar.gz nix-config-18f14ac391735bb2280f0c3efb58726afb600ea3.zip |
role.sils: consume
-rw-r--r-- | modules/nixos/sils/default.nix | 1 | ||||
-rw-r--r-- | modules/nixos/sils/roles.nix | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/modules/nixos/sils/default.nix b/modules/nixos/sils/default.nix index 8ca6aa7..926814f 100644 --- a/modules/nixos/sils/default.nix +++ b/modules/nixos/sils/default.nix @@ -1,5 +1,6 @@ {...}: { imports = [ + ./roles.nix ./basesystem.nix ./meta.nix ./networking.nix diff --git a/modules/nixos/sils/roles.nix b/modules/nixos/sils/roles.nix new file mode 100644 index 0000000..07cd22f --- /dev/null +++ b/modules/nixos/sils/roles.nix @@ -0,0 +1,14 @@ +{config, ...}: let + roleCmp = string: config.role.sils == string; +in { + config.sils = + if roleCmp "laptop" + then { + basesystem.enable = true; + plymouth.enable = true; + theming.enable = true; + } + else if roleCmp "vm" + then {} + else {}; +} |