1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00

nix-daemon: Fix builduser count to work when maxJobs is auto

This commit is contained in:
Colin L Rice 2019-08-01 01:54:28 -04:00
parent a1f738ba87
commit d7aa6df31f

View file

@ -467,7 +467,7 @@ in
fi
'';
nix.nrBuildUsers = mkDefault (lib.max 32 cfg.maxJobs);
nix.nrBuildUsers = mkDefault (lib.max 32 (if cfg.maxJobs == "auto" then 0 else cfg.maxJobs));
users.users = nixbldUsers;