2025-01-20 23:05:40 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
# array of hosts
|
|
|
|
HOSTS=(
|
|
|
|
"ns1"
|
|
|
|
"ns2"
|
|
|
|
"ca"
|
|
|
|
"ha1"
|
|
|
|
"http-proxy"
|
|
|
|
"jelly01"
|
|
|
|
"monitoring01"
|
2025-01-25 23:55:15 +00:00
|
|
|
"nix-cache01"
|
|
|
|
"pgdb1"
|
2025-01-20 23:05:40 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
for host in "${HOSTS[@]}"; do
|
|
|
|
echo "Rebuilding $host"
|
|
|
|
nixos-rebuild boot --flake .#${host} --target-host root@${host}
|
|
|
|
done
|