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:
Bjørn Forsman 2019-03-27 16:18:53 +01:00
parent 6e9e34ea1f
commit dbe4c043d7

View file

@ -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)" \