diff options
| author | Cole Helbling <cole.e.helbling@outlook.com> | 2023-06-05 18:27:58 -0700 |
|---|---|---|
| committer | Cole Helbling <cole.e.helbling@outlook.com> | 2023-06-06 16:21:14 -0700 |
| commit | 9c7a07b8b2d476b6b9f574c8f35000c7c7fbbaf4 (patch) | |
| tree | c9aec283b6b2db7832e692e743f1f1e854fd8c07 /modules | |
| parent | 4338bc869e9874d54a4c89539af72f16666b2abe (diff) | |
system/checks: allow disabling the buildUsers check
This allows systems with auto-allocate-uids enabled to work (by
disabling this check).
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/system/checks.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/system/checks.nix b/modules/system/checks.nix index bb1ed11..fa4b3ad 100644 --- a/modules/system/checks.nix +++ b/modules/system/checks.nix @@ -211,6 +211,12 @@ in description = "Whether to run the nix-channels validation checks."; }; + system.checks.verifyBuildUsers = mkOption { + type = types.bool; + default = true; + description = "Whether to run the Nix build users validation checks."; + }; + system.checks.text = mkOption { internal = true; type = types.lines; @@ -224,7 +230,7 @@ in darwinChanges runLink oldBuildUsers - (mkIf config.nix.useDaemon buildUsers) + (mkIf (config.nix.useDaemon && cfg.verifyBuildUsers) buildUsers) (mkIf (!config.nix.useDaemon) singleUser) nixStore (mkIf (config.nix.gc.automatic && config.nix.gc.user == null) nixGarbageCollector) |
