1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-04-15 16:56:37 +00:00

system/checks: allow disabling the buildUsers check

This allows systems with auto-allocate-uids enabled to work (by
disabling this check).
This commit is contained in:
Cole Helbling 2023-06-05 18:27:58 -07:00
parent 4338bc869e
commit 9c7a07b8b2
No known key found for this signature in database

View file

@ -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)