diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-04 07:26:19 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-04 07:26:19 +0100 |
commit | 1d6ae6f9ff2122b839a13aab7acc2c8190b9e647 (patch) | |
tree | 9f6d2909ec2ffc0fbd5bae63fd568b5053136bde /scripts/install-darwin-multi-user.sh | |
parent | 6622abb463eefb0c9cd28ea2f87c71a8185313e7 (diff) |
Merge pull request #9639 from awakesecurity/mz/darwin-UID-override
installer: allow overriding of NIX_FIRST_BUILD_ID on darwin
(cherry picked from commit e85fd92816571ea00abafa3929298d0e091bcb9b)
Change-Id: Ifffc3fedd740079345c205f54c62c76053e24846
Diffstat (limited to 'scripts/install-darwin-multi-user.sh')
-rw-r--r-- | scripts/install-darwin-multi-user.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/install-darwin-multi-user.sh b/scripts/install-darwin-multi-user.sh index 0326d3415..766f81bde 100644 --- a/scripts/install-darwin-multi-user.sh +++ b/scripts/install-darwin-multi-user.sh @@ -3,11 +3,13 @@ set -eu set -o pipefail +# System specific settings +export NIX_FIRST_BUILD_UID="${NIX_FIRST_BUILD_UID:-301}" +export NIX_BUILD_USER_NAME_TEMPLATE="_nixbld%d" + 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_BUILD_USER_NAME_TEMPLATE="_nixbld%d" # caution: may update times on / if not run as normal non-root user read_only_root() { |