From 822c22cde61189707e9b0217b7636be23ac811c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Tue, 21 Jan 2025 00:05:40 +0100 Subject: [PATCH] Add script to rebuild all hosts --- rebuild-all.sh | 18 +++++++++++++++++ services/home-assistant/default.nix | 31 +++++++++++++++-------------- 2 files changed, 34 insertions(+), 15 deletions(-) create mode 100755 rebuild-all.sh diff --git a/rebuild-all.sh b/rebuild-all.sh new file mode 100755 index 0000000..6885716 --- /dev/null +++ b/rebuild-all.sh @@ -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 diff --git a/services/home-assistant/default.nix b/services/home-assistant/default.nix index c31bffa..68b73a9 100644 --- a/services/home-assistant/default.nix +++ b/services/home-assistant/default.nix @@ -7,30 +7,31 @@ 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 - ]; - customComponents = - with pkgs.home-assistant-custom-components; - [ + zha + zha-quirks + zigpy-cc + zigpy-deconz + zigpy-xbee + zigpy-zigate + zigpy-znp + zlib-ng ]; + customComponents = with pkgs.home-assistant-custom-components; [ + ]; }; # Enable the mosquitto MQTT broker