diff options
-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 {}; +} |