summaryrefslogtreecommitdiff
path: root/system-profiles/core
diff options
context:
space:
mode:
Diffstat (limited to 'system-profiles/core')
-rw-r--r--system-profiles/core/default.nix15
1 files changed, 13 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;