@cryptotaxi247 / infra-1 / commits / 7e35a0b9

macs: elevate for darwin-rebuild

This has become a requirement in newer nix-darwin versions.

Martin Weinelt committed Jun 7, 2025 at 04:05 UTC 7e35a0b93517123ccbbd7acf6c0467a307bf3e8b
1 file changed +1 -1
macs/mac-update
+1 -1
@@ -5,7 +5,7 @@ PIDS=()
5 update() {
6 local HOST=${1}
7 local PROFILE=${2}
8 - (ssh "$HOST" -- darwin-rebuild switch --flake "github:nixos/infra#$PROFILE" 2>&1| sed -e "s/^/${HOST} | /") &
8 + (ssh "$HOST" -- sudo darwin-rebuild switch --flake "github:nixos/infra#$PROFILE" 2>&1| sed -e "s/^/${HOST} | /") &
9 PIDS+=($!)
10 }
11