From ae1152d0e78a37f4a4af9582463285831cef4f4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 22 Dec 2024 22:03:24 +0100 Subject: [PATCH] home-assistant: add zigpy OTA url --- modules/home-assistant.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/home-assistant.nix b/modules/home-assistant.nix index 823a199..838668e 100644 --- a/modules/home-assistant.nix +++ b/modules/home-assistant.nix @@ -10,7 +10,7 @@ in blueprints = lib.mkOption { type = with lib.types; listOf package; default = []; - example = lib.literalExpression '' + example = lib.literalExpression /* nix */ '' [ (pkgs.fetchFromGitHub { owner = "..."; @@ -91,6 +91,9 @@ in time_zone = config.time.timeZone; unit_system = "metric"; }; + + # see https://github.com/zigpy/zigpy/pull/1340 + zha.zigpy_config.ota.z2m_remote_index = "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/index.json"; }; }) @@ -169,7 +172,7 @@ in config.systemd.services = lib.mkIf (cfg.enable && cfg.blueprints != []) { # copied and adopted from customComponents - home-assistant.preStart = '' + home-assistant.preStart = /* shell */ '' mkdir -p "${cfg.configDir}/blueprints" # remove components symlinked in from below the /nix/store