From 658f5c74a3203f231dde5bd04e24ea3a56547db1 Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 24 Apr 2024 23:46:57 +0200 Subject: puyak: manage zigbee via home-assistant --- krebs/2configs/shack/glados/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'krebs/2configs/shack/glados/default.nix') diff --git a/krebs/2configs/shack/glados/default.nix b/krebs/2configs/shack/glados/default.nix index 236b5000d..23921c23e 100644 --- a/krebs/2configs/shack/glados/default.nix +++ b/krebs/2configs/shack/glados/default.nix @@ -3,10 +3,9 @@ let kodi-host = "192.168.8.11"; confdir = "/var/lib/homeassistant-docker"; in { - imports = [ - ]; + imports = [ ./zigbee.nix ]; - # networking.firewall.allowedTCPPorts = [ 8123 ]; + networking.firewall.allowedTCPPorts = [ 8123 ]; virtualisation.oci-containers.containers.hass = { image = "homeassistant/home-assistant:latest"; environment = { @@ -16,7 +15,7 @@ in { PGID = toString config.users.groups.news_container.gid; UMASK = "007"; }; - extraOptions = ["--net=host" ]; + extraOptions = ["--net=host" "--device=/dev/zigbee" ]; volumes = [ "${confdir}:/config" #"${confdir}/docker-run:/etc/services.d/home-assistant/run:" -- cgit v1.2.3 From 190db40330c87a8e69a718255090ec9c2957aabd Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 24 Apr 2024 23:49:22 +0200 Subject: glados: mount ts011f quirks into home-assistant container --- krebs/2configs/shack/glados/default.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'krebs/2configs/shack/glados/default.nix') diff --git a/krebs/2configs/shack/glados/default.nix b/krebs/2configs/shack/glados/default.nix index 23921c23e..ecf9ef48a 100644 --- a/krebs/2configs/shack/glados/default.nix +++ b/krebs/2configs/shack/glados/default.nix @@ -18,6 +18,7 @@ in { extraOptions = ["--net=host" "--device=/dev/zigbee" ]; volumes = [ "${confdir}:/config" + "${./zigbee-quirks}:/quirks" #"${confdir}/docker-run:/etc/services.d/home-assistant/run:" ]; }; -- cgit v1.2.3 From 406b9022555ba8f1f3babb3333340b8c74518a0c Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 25 Apr 2024 00:13:03 +0200 Subject: shack/glados: use working quirk for ts011f source: https://github.com/zigpy/zha-device-handlers/issues/1764#issuecomment-1946842958 --- krebs/2configs/shack/glados/default.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'krebs/2configs/shack/glados/default.nix') diff --git a/krebs/2configs/shack/glados/default.nix b/krebs/2configs/shack/glados/default.nix index ecf9ef48a..e8ed18f0d 100644 --- a/krebs/2configs/shack/glados/default.nix +++ b/krebs/2configs/shack/glados/default.nix @@ -10,9 +10,6 @@ in { image = "homeassistant/home-assistant:latest"; environment = { TZ = "Europe/Berlin"; - # TODO create unique users - PUID = toString config.users.users.news_container.uid; - PGID = toString config.users.groups.news_container.gid; UMASK = "007"; }; extraOptions = ["--net=host" "--device=/dev/zigbee" ]; @@ -25,7 +22,7 @@ in { systemd.tmpfiles.rules = [ #"f ${confdir}/docker-run 0770 kiosk kiosk - -" # TODO: - "d ${confdir} 0770 news_container news_container - -" + "d ${confdir} 0770 root root - -" ]; services.nginx.virtualHosts."hass.shack" = { -- cgit v1.2.3