diff options
Diffstat (limited to 'system-profiles')
-rw-r--r-- | system-profiles/core/default.nix | 15 | ||||
-rw-r--r-- | system-profiles/niri-flake.nix | 4 | ||||
-rw-r--r-- | system-profiles/niri-unstable.nix | 11 |
3 files changed, 28 insertions, 2 deletions
diff --git a/system-profiles/core/default.nix b/system-profiles/core/default.nix index 71d0619a..b85aea4e 100644 --- a/system-profiles/core/default.nix +++ b/system-profiles/core/default.nix | |||
@@ -181,7 +181,7 @@ in { | |||
181 | programs.ssh.internallyManaged = mkForce true; | 181 | programs.ssh.internallyManaged = mkForce true; |
182 | } | 182 | } |
183 | ]; | 183 | ]; |
184 | extraSpecialArgs = { inherit flake flakeInputs path; }; | 184 | extraSpecialArgs = { inherit flake flakeInputs path; hostConfig = config; }; |
185 | }; | 185 | }; |
186 | 186 | ||
187 | sops = mkIf hasSops { | 187 | sops = mkIf hasSops { |
@@ -208,11 +208,22 @@ in { | |||
208 | enableNg = true; | 208 | enableNg = true; |
209 | }; | 209 | }; |
210 | }) | 210 | }) |
211 | ++ (optional (options ? system.rebuild.enableNg) { | ||
212 | system.rebuild.enableNg = lib.mkDefault true; | ||
213 | }) | ||
214 | ++ (optional (options ? services.userborn) { | ||
215 | services.userborn = { | ||
216 | enable = lib.mkDefault true; | ||
217 | passwordFilesLocation = lib.mkDefault "/var/lib/nixos"; | ||
218 | }; | ||
219 | }) | ||
220 | ++ (optional (!(options ? services.userborn) && (options ? system.etc)) { | ||
221 | systemd.sysusers.enable = lib.mkDefault true; | ||
222 | }) | ||
211 | ++ (optional (options ? system.etc) { | 223 | ++ (optional (options ? system.etc) { |
212 | boot.initrd.systemd.enable = lib.mkDefault true; | 224 | boot.initrd.systemd.enable = lib.mkDefault true; |
213 | system.etc.overlay.enable = lib.mkDefault true; | 225 | system.etc.overlay.enable = lib.mkDefault true; |
214 | system.etc.overlay.mutable = lib.mkDefault (!config.systemd.sysusers.enable); | 226 | system.etc.overlay.mutable = lib.mkDefault (!config.systemd.sysusers.enable); |
215 | systemd.sysusers.enable = lib.mkDefault true; | ||
216 | 227 | ||
217 | # Random perl remnants | 228 | # Random perl remnants |
218 | system.disableInstallerTools = lib.mkDefault true; | 229 | system.disableInstallerTools = lib.mkDefault true; |
diff --git a/system-profiles/niri-flake.nix b/system-profiles/niri-flake.nix new file mode 100644 index 00000000..b28d51ff --- /dev/null +++ b/system-profiles/niri-flake.nix | |||
@@ -0,0 +1,4 @@ | |||
1 | { ... }: | ||
2 | { | ||
3 | config.niri-flake.cache.enable = false; | ||
4 | } | ||
diff --git a/system-profiles/niri-unstable.nix b/system-profiles/niri-unstable.nix new file mode 100644 index 00000000..3a8b393d --- /dev/null +++ b/system-profiles/niri-unstable.nix | |||
@@ -0,0 +1,11 @@ | |||
1 | { config, pkgs, lib, ... }: | ||
2 | { | ||
3 | config = { | ||
4 | programs.niri.package = lib.mkDefault pkgs.niri-unstable; | ||
5 | home-manager.sharedModules = [ | ||
6 | { | ||
7 | programs.niri.package = lib.mkDefault config.programs.niri.package; | ||
8 | } | ||
9 | ]; | ||
10 | }; | ||
11 | } | ||