nixos/nix-daemon: default to build with all cores available

These days build systems are more robust w.r.t. to concurrency.
Most users will have at least two cores in their machines.
Therefore I suggest to increase the number of cores used for building.

fixes #50376
This commit is contained in:
Jörg Thalheim 2018-11-16 00:39:27 +00:00
parent e024989531
commit ced57f7888
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA

View File

@ -117,11 +117,11 @@ in
buildCores = mkOption {
type = types.int;
default = 1;
default = 0;
example = 64;
description = ''
This option defines the maximum number of concurrent tasks during
one build. It affects, e.g., -j option for make. The default is 1.
one build. It affects, e.g., -j option for make.
The special value 0 means that the builder should use all
available CPU cores in the system. Some builds may become
non-deterministic with this option; use with care! Packages will