mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 16:23:02 +00:00
install-multi-user: reduce max-jobs from 32 to 1
Having max-jobs = 32 ($NIX_USER_COUNT is hardcoded to that value) may severely overload the machine. The nix.conf(5) manual page says max-jobs defaults to 1, so let's use that value. NOTE: Both max-jobs and cores are now being set to their default value, so they can be removed alltogether.
This commit is contained in:
parent
6e9e34ea1f
commit
dbe4c043d7
@ -742,7 +742,7 @@ place_nix_configuration() {
|
|||||||
cat <<EOF > "$SCRATCH/nix.conf"
|
cat <<EOF > "$SCRATCH/nix.conf"
|
||||||
build-users-group = $NIX_BUILD_GROUP_NAME
|
build-users-group = $NIX_BUILD_GROUP_NAME
|
||||||
|
|
||||||
max-jobs = $NIX_USER_COUNT
|
max-jobs = 1
|
||||||
cores = 1
|
cores = 1
|
||||||
EOF
|
EOF
|
||||||
_sudo "to place the default nix daemon configuration (part 2)" \
|
_sudo "to place the default nix daemon configuration (part 2)" \
|
||||||
|
Loading…
Reference in New Issue
Block a user