macs: add update script to track profiles
Martin Weinelt committed
Jan 16, 2025 at 02:17 UTC
e5eea7fec7a0bf8509cfd8d53f2b43a2967aca84
1 file changed
+20
macs/mac-update
new
+20
@@ -0,0 +1,20 @@
1
+#!/usr/bin/env bash
2
+
3
+PIDS=()
4
+
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} | /") &
9
+ PIDS+=($!)
10
+}
11
+
12
+update hetzner@enormous-catfish.mac.nixos.org m1
13
+update hetzner@growing-jennet.mac.nixos.org m1
14
+update hetzner@intense-heron.mac.nixos.org m1
15
+update hetzner@maximum-snail.mac.nixos.org m1
16
+update hetzner@sweeping-filly.mac.nixos.org m1
17
+update customer@eager-heisenberg.mac.nixos.org m2-large
18
+update customer@kind-lumiere.mac.nixos.org m2-large
19
+
20
+wait "${PIDS[@]}"