nixos/nix-daemon: remove nixbld users if auto-allocating UIDs
https://nixos.org/manual/nix/unstable/command-ref/conf-file.html#conf-auto-allocate-uids
This commit is contained in:
parent
84575b0bd8
commit
cf5ab0191d
@ -792,7 +792,10 @@ in
|
||||
fi
|
||||
'';
|
||||
|
||||
nix.nrBuildUsers = mkDefault (max 32 (if cfg.settings.max-jobs == "auto" then 0 else cfg.settings.max-jobs));
|
||||
nix.nrBuildUsers = mkDefault (
|
||||
if cfg.settings.auto-allocate-uids or false then 0
|
||||
else max 32 (if cfg.settings.max-jobs == "auto" then 0 else cfg.settings.max-jobs)
|
||||
);
|
||||
|
||||
users.users = nixbldUsers;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user