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
1 changed files with 1 additions and 1 deletions
|
@ -742,7 +742,7 @@ place_nix_configuration() {
|
|||
cat <<EOF > "$SCRATCH/nix.conf"
|
||||
build-users-group = $NIX_BUILD_GROUP_NAME
|
||||
|
||||
max-jobs = $NIX_USER_COUNT
|
||||
max-jobs = 1
|
||||
cores = 1
|
||||
EOF
|
||||
_sudo "to place the default nix daemon configuration (part 2)" \
|
||||
|
|
Loading…
Reference in a new issue