mirror of
https://github.com/cachix/install-nix-action.git
synced 2024-11-21 16:10:52 +00:00
Merge pull request #94 from cachix/user-count-cpu-cores
Create X number of users where X = 2 * cpu cores
This commit is contained in:
commit
11e5400ecc
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ installer_options=(
|
||||||
if [[ $OSTYPE =~ darwin || -e /run/systemd/system ]]; then
|
if [[ $OSTYPE =~ darwin || -e /run/systemd/system ]]; then
|
||||||
installer_options+=(
|
installer_options+=(
|
||||||
--daemon
|
--daemon
|
||||||
--daemon-user-count 4
|
--daemon-user-count `python -c 'import multiprocessing as mp; print(mp.cpu_count() * 2)'`
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
# "fix" the following error when running nix*
|
# "fix" the following error when running nix*
|
||||||
|
|
Loading…
Reference in a new issue