Skip to content

Commit

Permalink
installer: allow overriding nix user UID on darwin too
Browse files Browse the repository at this point in the history
Similar to f4d57aa ("installer: allow overriding nix user GID and
UIDs"), but for darwin.

(There's no corresponding *_GID in this script though, so skipping
that.)

Ref NixOS#6153.
  • Loading branch information
bjornfor committed Apr 29, 2022
1 parent 35393dc commit 38f2757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install-darwin-multi-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -o pipefail
readonly NIX_DAEMON_DEST=/Library/LaunchDaemons/org.nixos.nix-daemon.plist
# create by default; set 0 to DIY, use a symlink, etc.
readonly NIX_VOLUME_CREATE=${NIX_VOLUME_CREATE:-1} # now default
NIX_FIRST_BUILD_UID="301"
NIX_FIRST_BUILD_UID="${NIX_FIRST_BUILD_UID:-301}"
NIX_BUILD_USER_NAME_TEMPLATE="_nixbld%d"

# caution: may update times on / if not run as normal non-root user
Expand Down

0 comments on commit 38f2757

Please sign in to comment.