| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | PIDS=() |
| 4 | |
| 5 | update() { |
| 6 | local HOST=${1} |
| 7 | local PROFILE=${2} |
| 8 | (ssh "$HOST" -- sudo darwin-rebuild switch --flake "github:nixos/infra" 2>&1| sed -e "s/^/${HOST} | /") & |
| 9 | PIDS+=($!) |
| 10 | } |
| 11 | |
| 12 | update hetzner@enormous-catfish.mac.nixos.org |
| 13 | update hetzner@growing-jennet.mac.nixos.org |
| 14 | update hetzner@intense-heron.mac.nixos.org |
| 15 | update hetzner@maximum-snail.mac.nixos.org |
| 16 | update hetzner@sweeping-filly.mac.nixos.org |
| 17 | update customer@eager-heisenberg.mac.nixos.org |
| 18 | update customer@kind-lumiere.mac.nixos.org |
| 19 | update root@norwegian-blue.mac.nixos.org |
| 20 | # ofborg (MacStadium) |
| 21 | update root@mac01.ofborg.org |
| 22 | update root@mac02.ofborg.org |
| 23 | update root@mac03.ofborg.org |
| 24 | update root@mac04.ofborg.org |
| 25 | update root@mac05.ofborg.org |
| 26 | |
| 27 | wait "${PIDS[@]}" |