3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #65709 from c00w/max_auto

nix-daemon: Fix builduser count to work when maxJobs is auto
This commit is contained in:
Jörg Thalheim 2019-08-01 07:46:41 +01:00 committed by GitHub
commit f47731462c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;