diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2018-11-16 00:39:27 +0000 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2018-11-16 02:05:30 +0000 |
commit | ced57f7888c9244f3e07e4b08462aeb64acd8c66 (patch) | |
tree | 07afa827f8a9f35c9b7a8ca09528ea9e82f33fda /nixos/modules/services/misc/nix-daemon.nix | |
parent | e024989531ade83687afeedf868c6ea8f2f56e11 (diff) | |
download | nixpkgs-ced57f7888c9244f3e07e4b08462aeb64acd8c66.tar nixpkgs-ced57f7888c9244f3e07e4b08462aeb64acd8c66.tar.gz nixpkgs-ced57f7888c9244f3e07e4b08462aeb64acd8c66.tar.bz2 nixpkgs-ced57f7888c9244f3e07e4b08462aeb64acd8c66.tar.lz nixpkgs-ced57f7888c9244f3e07e4b08462aeb64acd8c66.tar.xz nixpkgs-ced57f7888c9244f3e07e4b08462aeb64acd8c66.tar.zst nixpkgs-ced57f7888c9244f3e07e4b08462aeb64acd8c66.zip |
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
Diffstat (limited to 'nixos/modules/services/misc/nix-daemon.nix')
-rw-r--r-- | nixos/modules/services/misc/nix-daemon.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/misc/nix-daemon.nix b/nixos/modules/services/misc/nix-daemon.nix index 97357557061..9a8116a03e8 100644 --- a/nixos/modules/services/misc/nix-daemon.nix +++ b/nixos/modules/services/misc/nix-daemon.nix @@ -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 |