diff options
| author | zowoq <59103226+zowoq@users.noreply.github.com> | 2023-09-25 14:02:50 +1000 |
|---|---|---|
| committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2023-09-25 14:02:52 +1000 |
| commit | ab817e5d0e8561949dbc1a9640f88cde2990d862 (patch) | |
| tree | 5b7022b5b85d5c81d719727501c74b8f455e4035 /pkgs | |
| parent | c286b23c7fd7f0622bc4af898c91f58b8d304ff1 (diff) | |
darwin-rebuild: add `-H` to sudo for `$systemConfig/activate`
Diffstat (limited to 'pkgs')
| -rw-r--r-- | pkgs/nix-tools/darwin-rebuild.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/nix-tools/darwin-rebuild.sh b/pkgs/nix-tools/darwin-rebuild.sh index 2d288bd..f9d0599 100644 --- a/pkgs/nix-tools/darwin-rebuild.sh +++ b/pkgs/nix-tools/darwin-rebuild.sh @@ -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 |
