summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2023-06-08 08:42:41 +0100
committerGitHub <noreply@github.com>2023-06-08 08:42:41 +0100
commit40e4b85baac86969f94d6dba893aeae015c562c1 (patch)
treed7b65a944eabe0bf99a3b4749442c04007e3fb65
parent5c671dd10fb621f5b2b77cd30d9043d2af62e378 (diff)
parent9c7a07b8b2d476b6b9f574c8f35000c7c7fbbaf4 (diff)
Merge pull request #681 from cole-h/auto-uid
system/checks: allow disabling the buildUsers check
-rw-r--r--modules/system/checks.nix8
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)