From a297913039653e121b5475724689c587be0900e1 Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Sat, 15 Jul 2023 17:00:01 +0200 Subject: [PATCH] Add pyscript to home assistant Signed-off-by: Magic_RB --- nixng/containers/home-assistant/home-assistant.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nixng/containers/home-assistant/home-assistant.nix b/nixng/containers/home-assistant/home-assistant.nix index 7e57cd7..4bfb5eb 100644 --- a/nixng/containers/home-assistant/home-assistant.nix +++ b/nixng/containers/home-assistant/home-assistant.nix @@ -35,7 +35,13 @@ makeSystem { services.home-assistant = { enable = true; envsubst = true; - customComponents = {}; + customComponents = { + pyscript = pkgs.fetchzip { + url = "https://github.com/custom-components/pyscript/releases/download/1.4.0/hass-custom-pyscript.zip"; + hash = "sha256-MpFnBqJ9PTbXnvwRbbEhfuv1q6mQ5jY1kEbhP6FFwvk="; + stripRoot = false; + }; + }; config = { default_config = {}; recorder = { @@ -125,6 +131,7 @@ makeSystem { bleak-retry-connector psutil-home-assistant bluetooth-auto-recovery + croniter ]; }; };