From ea1e2e97d0c1db689a4937902872dd0a4b2d4564 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 16 Jan 2025 02:17:02 +0100 Subject: [PATCH] macs: add update script to track profiles --- macs/mac-update | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 macs/mac-update diff --git a/macs/mac-update b/macs/mac-update new file mode 100755 index 00000000..e68427fd --- /dev/null +++ b/macs/mac-update @@ -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 hetzner@enormous-catfish.mac.nixos.org m1 +update hetzner@growing-jennet.mac.nixos.org m1 +update hetzner@intense-heron.mac.nixos.org m1 +update hetzner@maximum-snail.mac.nixos.org m1 +update hetzner@sweeping-filly.mac.nixos.org m1 +update customer@eager-heisenberg.mac.nixos.org m2-large +update customer@kind-lumiere.mac.nixos.org m2-large + +wait "${PIDS[@]}"