mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 08:12:29 +00:00
install-darwin: increment base UID by 1 (#15)
(cherry picked from commit 11cf29b15c
)
This commit is contained in:
parent
68dedc533b
commit
5ed25013f3
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
((NEW_NIX_FIRST_BUILD_UID=350))
|
((NEW_NIX_FIRST_BUILD_UID=351))
|
||||||
|
|
||||||
id_available(){
|
id_available(){
|
||||||
dscl . list /Users UniqueID | grep -E '\b'$1'\b' >/dev/null
|
dscl . list /Users UniqueID | grep -E '\b'$1'\b' >/dev/null
|
||||||
|
@ -9,11 +9,11 @@ set -o pipefail
|
|||||||
# - we changed UID to 301 because Big Sur updates failed into recovery mode
|
# - we changed UID to 301 because Big Sur updates failed into recovery mode
|
||||||
# we're targeting the 200-400 UID range for role users mentioned in the
|
# we're targeting the 200-400 UID range for role users mentioned in the
|
||||||
# usage note for sysadminctl
|
# usage note for sysadminctl
|
||||||
# - we changed UID to 350 because Sequoia now uses UIDs 300-304 for its own
|
# - we changed UID to 351 because Sequoia now uses UIDs 300-304 for its own
|
||||||
# daemon users
|
# daemon users
|
||||||
# - we changed GID to 350 alongside above just because it hides the nixbld
|
# - we changed GID to 350 alongside above just because it hides the nixbld
|
||||||
# group from the Users & Groups settings panel :)
|
# group from the Users & Groups settings panel :)
|
||||||
export NIX_FIRST_BUILD_UID="${NIX_FIRST_BUILD_UID:-350}"
|
export NIX_FIRST_BUILD_UID="${NIX_FIRST_BUILD_UID:-351}"
|
||||||
export NIX_BUILD_GROUP_ID="${NIX_BUILD_GROUP_ID:-350}"
|
export NIX_BUILD_GROUP_ID="${NIX_BUILD_GROUP_ID:-350}"
|
||||||
export NIX_BUILD_USER_NAME_TEMPLATE="_nixbld%d"
|
export NIX_BUILD_USER_NAME_TEMPLATE="_nixbld%d"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user