Add script to rebuild all hosts
This commit is contained in:
parent
ed4d90cd33
commit
822c22cde6
18
rebuild-all.sh
Executable file
18
rebuild-all.sh
Executable 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
|
@ -7,30 +7,31 @@
|
|||||||
configWritable = true;
|
configWritable = true;
|
||||||
config = null;
|
config = null;
|
||||||
extraPackages =
|
extraPackages =
|
||||||
python3Packages: with pkgs.unstable.python312Packages; [
|
python3Packages: with pkgs.unstable.python313Packages; [
|
||||||
aiopyarr
|
aiopyarr
|
||||||
zigpy-cc
|
|
||||||
zigpy-znp
|
|
||||||
zigpy-zigate
|
|
||||||
zigpy-xbee
|
|
||||||
zigpy-deconz
|
|
||||||
pykodi
|
|
||||||
gtts
|
|
||||||
bellows
|
bellows
|
||||||
radios
|
gtts
|
||||||
|
isal
|
||||||
paho-mqtt
|
paho-mqtt
|
||||||
zha-quirks
|
pykodi
|
||||||
|
python-roborock
|
||||||
|
radios
|
||||||
uiprotect
|
uiprotect
|
||||||
unifi-discovery
|
unifi-discovery
|
||||||
universal-silabs-flasher
|
universal-silabs-flasher
|
||||||
vacuum-map-parser-base
|
vacuum-map-parser-base
|
||||||
vacuum-map-parser-roborock
|
vacuum-map-parser-roborock
|
||||||
python-roborock
|
zha
|
||||||
];
|
zha-quirks
|
||||||
customComponents =
|
zigpy-cc
|
||||||
with pkgs.home-assistant-custom-components;
|
zigpy-deconz
|
||||||
[
|
zigpy-xbee
|
||||||
|
zigpy-zigate
|
||||||
|
zigpy-znp
|
||||||
|
zlib-ng
|
||||||
];
|
];
|
||||||
|
customComponents = with pkgs.home-assistant-custom-components; [
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable the mosquitto MQTT broker
|
# Enable the mosquitto MQTT broker
|
||||||
|
Loading…
Reference in New Issue
Block a user