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
commitced57f7888c9244f3e07e4b08462aeb64acd8c66
authorJörg Thalheim <joerg@thalheim.io>
dateFri 16 Nov 2018, 00:39 (8 years ago)
parente024989
nixos/modules/services/misc/nix-daemon.nix+2−2
@@ -117,11 +117,11 @@ in
117117
118118 buildCores = mkOption {
119119 type = types.int;
120− default = 1;
120+ default = 0;
121121 example = 64;
122122 description = ''
123123 This option defines the maximum number of concurrent tasks during
124− one build. It affects, e.g., -j option for make. The default is 1.
124+ one build. It affects, e.g., -j option for make.
125125 The special value 0 means that the builder should use all
126126 available CPU cores in the system. Some builds may become
127127 non-deterministic with this option; use with care! Packages will