aboutsummaryrefslogtreecommitdiffstats
path: root/modules/nixos/sils/roles.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nixos/sils/roles.nix')
-rw-r--r--modules/nixos/sils/roles.nix14
1 files changed, 14 insertions, 0 deletions
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 {};
+}