Skip to content

Commit

Permalink
Merge pull request #94 from cachix/user-count-cpu-cores
Browse files Browse the repository at this point in the history
Create X number of users where X = 2 * cpu cores
  • Loading branch information
domenkozar committed Sep 8, 2021
2 parents 7a7eae5 + 0f50057 commit 11e5400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install-nix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ installer_options=(
if [[ $OSTYPE =~ darwin || -e /run/systemd/system ]]; then
installer_options+=(
--daemon
--daemon-user-count 4
--daemon-user-count `python -c 'import multiprocessing as mp; print(mp.cpu_count() * 2)'`
)
else
# "fix" the following error when running nix*
Expand Down

0 comments on commit 11e5400

Please sign in to comment.