From 0d999e7d7637afd0f0744d7036b967632d7ea7aa Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 6 Jan 2025 15:22:16 +0100 Subject: ... --- system-profiles/core/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'system-profiles/core/default.nix') diff --git a/system-profiles/core/default.nix b/system-profiles/core/default.nix index 3d3ef117..e7e70eb9 100644 --- a/system-profiles/core/default.nix +++ b/system-profiles/core/default.nix @@ -214,11 +214,13 @@ in { ++ (optional (options ? services.userborn) { services.userborn.enable = lib.mkDefault true; }) + ++ (optional (!(options ? services.userborn) && (options ? system.etc)) { + systemd.sysusers.enable = lib.mkDefault true; + }) ++ (optional (options ? system.etc) { boot.initrd.systemd.enable = lib.mkDefault true; system.etc.overlay.enable = lib.mkDefault true; system.etc.overlay.mutable = lib.mkDefault (!config.systemd.sysusers.enable); - systemd.sysusers.enable = lib.mkDefault true; # Random perl remnants system.disableInstallerTools = lib.mkDefault true; -- cgit v1.2.3