Skip to content

Commit

Permalink
macs: add update script to track profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Jan 17, 2025
1 parent 31fb1be commit ea1e2e9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions macs/mac-update
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash

PIDS=()

update() {
local HOST=${1}
local PROFILE=${2}
(ssh "$HOST" -- darwin-rebuild switch --flake "github:nixos/infra#$PROFILE" 2>&1| sed -e "s/^/${HOST} | /") &
PIDS+=($!)
}

update [email protected] m1
update [email protected] m1
update [email protected] m1
update [email protected] m1
update [email protected] m1
update [email protected] m2-large
update [email protected] m2-large

wait "${PIDS[@]}"

0 comments on commit ea1e2e9

Please sign in to comment.