1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

installer: allow overriding of NIX_FIRST_BUILD_ID on darwin

because there are often already users in the 300 range and it's painful
to work around.

revives #6466
This commit is contained in:
Mel Zuser 2023-12-18 15:02:26 -08:00
parent 5d5b25f2e3
commit fa4bbe53e8
3 changed files with 23 additions and 6 deletions

View file

@ -3,6 +3,10 @@
set -eu
set -o pipefail
# System specific settings
export NIX_FIRST_BUILD_UID="${NIX_FIRST_BUILD_UID:-30001}"
export NIX_BUILD_USER_NAME_TEMPLATE="nixbld%d"
readonly SERVICE_SRC=/lib/systemd/system/nix-daemon.service
readonly SERVICE_DEST=/etc/systemd/system/nix-daemon.service