1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-04-15 08:46:25 +00:00

Merge pull request #783 from qowoz/activate-sudo

darwin-rebuild: add `-H` to sudo for `$systemConfig/activate`
This commit is contained in:
Michael Hoang 2023-09-30 03:10:47 +00:00 committed by GitHub
commit 792c2e0134
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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