diff options
| author | Emily <vcs@emily.moe> | 2024-09-10 21:32:06 +0100 |
|---|---|---|
| committer | Emily <vcs@emily.moe> | 2024-09-11 00:37:08 +0100 |
| commit | 2af5f0fb9e554ea3c85e57d35a5f2ed5a10b8867 (patch) | |
| tree | 0b381423db8e48a27683bd5cfe3a5dbf1776090d /modules/system/checks.nix | |
| parent | 98189683a4674d26fab2b5a7134bcfb5aa05cdf1 (diff) | |
checks: factor out `nix.useDaemon` check
Diffstat (limited to 'modules/system/checks.nix')
| -rw-r--r-- | modules/system/checks.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/system/checks.nix b/modules/system/checks.nix index 6afce81..1cfe1c8 100644 --- a/modules/system/checks.nix +++ b/modules/system/checks.nix @@ -242,7 +242,9 @@ in system.checks.verifyBuildUsers = mkOption { type = types.bool; - default = !(config.nix.settings.auto-allocate-uids or false); + default = + (config.nix.useDaemon && !(config.nix.settings.auto-allocate-uids or false)) + || config.nix.configureBuildUsers; description = "Whether to run the Nix build users validation checks."; }; @@ -259,7 +261,7 @@ in darwinChanges runLink oldBuildUsers - (mkIf (config.nix.useDaemon && cfg.verifyBuildUsers) buildUsers) + (mkIf cfg.verifyBuildUsers buildUsers) (mkIf (!config.nix.useDaemon) singleUser) nixStore (mkIf (config.nix.gc.automatic && config.nix.gc.user == null) nixGarbageCollector) |
