Add script to rebuild all hosts
Some checks failed
Run nix flake check / flake-check (push) Failing after 4m54s
Periodic flake update / flake-update (push) Successful in 1m23s

This commit is contained in:
Torjus Håkestad 2025-01-21 00:05:40 +01:00
parent ed4d90cd33
commit 822c22cde6
Signed by: torjus
SSH Key Fingerprint: SHA256:KjAds8wHfD2mBYK2H815s/+ABcSdcIHUndwHEdSxml4
2 changed files with 34 additions and 15 deletions

18
rebuild-all.sh Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail
# array of hosts
HOSTS=(
"ns1"
"ns2"
"ca"
"ha1"
"http-proxy"
"jelly01"
"monitoring01"
)
for host in "${HOSTS[@]}"; do
echo "Rebuilding $host"
nixos-rebuild boot --flake .#${host} --target-host root@${host}
done

View File

@ -7,29 +7,30 @@
configWritable = true;
config = null;
extraPackages =
python3Packages: with pkgs.unstable.python312Packages; [
python3Packages: with pkgs.unstable.python313Packages; [
aiopyarr
zigpy-cc
zigpy-znp
zigpy-zigate
zigpy-xbee
zigpy-deconz
pykodi
gtts
bellows
radios
gtts
isal
paho-mqtt
zha-quirks
pykodi
python-roborock
radios
uiprotect
unifi-discovery
universal-silabs-flasher
vacuum-map-parser-base
vacuum-map-parser-roborock
python-roborock
zha
zha-quirks
zigpy-cc
zigpy-deconz
zigpy-xbee
zigpy-zigate
zigpy-znp
zlib-ng
];
customComponents =
with pkgs.home-assistant-custom-components;
[
customComponents = with pkgs.home-assistant-custom-components; [
];
};