Skip to content

Commit

Permalink
Merge pull request #783 from qowoz/activate-sudo
Browse files Browse the repository at this point in the history
darwin-rebuild: add `-H` to sudo for `$systemConfig/activate`
  • Loading branch information
Enzime committed Sep 30, 2023
2 parents e236a1e + ab817e5 commit 792c2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/nix-tools/darwin-rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ if [ "$action" = switch ] || [ "$action" = activate ] || [ "$action" = rollback
"$systemConfig/activate-user"

if [ "$USER" != root ]; then
sudo "$systemConfig/activate"
sudo -H "$systemConfig/activate"
else
"$systemConfig/activate"
fi
Expand Down

0 comments on commit 792c2e0

Please sign in to comment.