aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2017-10-05 09:07:55 -0700
committerShea Levy <shea@shealevy.com>2017-10-05 09:07:55 -0700
commitfb98e29067bb3899b3ebf876128a7032dba295e5 (patch)
tree2255d667e5c9c9761859cbb91dda0a75b58c3283 /scripts
parentc6676ea253e6402760435b1a3cff53d294e4a9fd (diff)
darwin installer: Fix on systems where sudo -i is disabled.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install-darwin-multi-user.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/install-darwin-multi-user.sh b/scripts/install-darwin-multi-user.sh
index 5b466ac3c..cb255e83c 100644
--- a/scripts/install-darwin-multi-user.sh
+++ b/scripts/install-darwin-multi-user.sh
@@ -730,13 +730,13 @@ configure_shell_profile() {
setup_default_profile() {
_sudo "to installing a bootstrapping Nix in to the default Profile" \
- -i "$NIX_INSTALLED_NIX/bin/nix-env" -i "$NIX_INSTALLED_NIX"
+ HOME=$ROOT_HOME "$NIX_INSTALLED_NIX/bin/nix-env" -i "$NIX_INSTALLED_NIX"
_sudo "to installing a bootstrapping SSL certificate just for Nix in to the default Profile" \
- -i "$NIX_INSTALLED_NIX/bin/nix-env" -i "$NIX_INSTALLED_CACERT"
+ HOME=$ROOT_HOME "$NIX_INSTALLED_NIX/bin/nix-env" -i "$NIX_INSTALLED_CACERT"
_sudo "to update the default channel in the default profile" \
- -i NIX_SSL_CERT_FILE=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt "$NIX_INSTALLED_NIX/bin/nix-channel" --update nixpkgs
+ HOME=$ROOT_HOME NIX_SSL_CERT_FILE=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt "$NIX_INSTALLED_NIX/bin/nix-channel" --update nixpkgs
}