Skip to content

Commit

Permalink
Merge pull request #681 from cole-h/auto-uid
Browse files Browse the repository at this point in the history
system/checks: allow disabling the buildUsers check
  • Loading branch information
domenkozar committed Jun 8, 2023
2 parents 5c671dd + 9c7a07b commit 40e4b85
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/system/checks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit 40e4b85

Please sign in to comment.