mirror of
https://github.com/cachix/install-nix-action.git
synced 2025-11-06 23:49:13 +00:00
Merge e7eff97c99 into fd24c48048
This commit is contained in:
commit
9f7bcd50ac
1 changed files with 3 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ if [[ -n "${INPUT_EXTRA_NIX_CONFIG:-}" ]]; then
|
|||
add_config "$INPUT_EXTRA_NIX_CONFIG"
|
||||
fi
|
||||
if [[ ! $INPUT_EXTRA_NIX_CONFIG =~ "experimental-features" ]]; then
|
||||
add_config "experimental-features = nix-command flakes"
|
||||
add_config "experimental-features = nix-command flakes auto-allocate-uids"
|
||||
fi
|
||||
# Always allow substituting from the cache, even if the derivation has `allowSubstitutes = false`.
|
||||
# This is a CI optimisation to avoid having to download the inputs for already-cached derivations to rebuild trivial text files.
|
||||
|
|
@ -82,8 +82,9 @@ fi
|
|||
if use_daemon; then
|
||||
installer_options+=(
|
||||
--daemon
|
||||
--daemon-user-count "$(python3 -c 'import multiprocessing as mp; print(mp.cpu_count() * 2)')"
|
||||
--daemon-user-count 1
|
||||
)
|
||||
add_config "auto-allocate-uids = true"
|
||||
else
|
||||
# "fix" the following error when running nix*
|
||||
# error: the group 'nixbld' specified in 'build-users-group' does not exist
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue