1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

darwin-rebuild: add -H to sudo for $systemConfig/activate

This commit is contained in:
zowoq 2023-09-25 14:02:50 +10:00
parent c286b23c7f
commit ab817e5d0e

View file

@ -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