summary refs log tree commit diff stats
path: root/modules/nixos
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-04-20 19:13:28 +0200
committerSilas Schöffel <sils@sils.li>2024-04-20 19:13:28 +0200
commitd17783338b094d841ffe50300c1a0d2ef3880e58 (patch)
treed5957ae8d09fb27c3d3f3b031c469eff92842574 /modules/nixos
parentsys/users: remove autoLogin (diff)
downloadnix-config-d17783338b094d841ffe50300c1a0d2ef3880e58.tar.gz
nix-config-d17783338b094d841ffe50300c1a0d2ef3880e58.zip
sils: make nix-config toggleable
Diffstat (limited to '')
-rw-r--r--modules/nixos/sils/nix.nix1
-rw-r--r--modules/nixos/sils/roles.nix1
2 files changed, 2 insertions, 0 deletions
diff --git a/modules/nixos/sils/nix.nix b/modules/nixos/sils/nix.nix
index 6898fa9..2bc792b 100644
--- a/modules/nixos/sils/nix.nix
+++ b/modules/nixos/sils/nix.nix
@@ -8,6 +8,7 @@
   cfg = config.sils.nix;
 in {
   options.sils.nix = {
+    enable = lib.mkEnableOption "nix config";
     remoteBuild = lib.mkEnableOption "remote builds";
   };
   config = {
diff --git a/modules/nixos/sils/roles.nix b/modules/nixos/sils/roles.nix
index 07cd22f..9e8cf3d 100644
--- a/modules/nixos/sils/roles.nix
+++ b/modules/nixos/sils/roles.nix
@@ -5,6 +5,7 @@ in {
     if roleCmp "laptop"
     then {
       basesystem.enable = true;
+      nix.enable = true;
       plymouth.enable = true;
       theming.enable = true;
     }