Skip to content

Commit e7eff97

Browse files
committed
Use auto-uid-allocate
1 parent 4b933aa commit e7eff97

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

install-nix.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if [[ -n "${INPUT_EXTRA_NIX_CONFIG:-}" ]]; then
3232
add_config "$INPUT_EXTRA_NIX_CONFIG"
3333
fi
3434
if [[ ! $INPUT_EXTRA_NIX_CONFIG =~ "experimental-features" ]]; then
35-
add_config "experimental-features = nix-command flakes"
35+
add_config "experimental-features = nix-command flakes auto-allocate-uids"
3636
fi
3737

3838
# Nix installer flags
@@ -46,8 +46,9 @@ installer_options=(
4646
if [[ (! $INPUT_INSTALL_OPTIONS =~ "--no-daemon") && ($OSTYPE =~ darwin || -e /run/systemd/system) ]]; then
4747
installer_options+=(
4848
--daemon
49-
--daemon-user-count "$(python3 -c 'import multiprocessing as mp; print(mp.cpu_count() * 2)')"
49+
--daemon-user-count 1
5050
)
51+
add_config "auto-allocate-uids = true"
5152
else
5253
# "fix" the following error when running nix*
5354
# error: the group 'nixbld' specified in 'build-users-group' does not exist

0 commit comments

Comments
 (0)