diff options
author | tv <tv@krebsco.de> | 2024-05-22 19:56:07 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2024-05-22 19:56:07 +0200 |
commit | 5316b58ab315970613ee76993ad4feb1a73826d0 (patch) | |
tree | 95c0f9a1e695b5a55a49599dbca472e80110b3a8 /krebs/2configs/shack/glados/default.nix | |
parent | 04c9e3ecdd07c8b5afa5c9f335d9cc1ef467f925 (diff) | |
parent | 2245f90c40a31bb5b440b1a5a5019a57e51f4214 (diff) |
Merge remote-tracking branch 'orange/master'
Diffstat (limited to 'krebs/2configs/shack/glados/default.nix')
-rw-r--r-- | krebs/2configs/shack/glados/default.nix | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/krebs/2configs/shack/glados/default.nix b/krebs/2configs/shack/glados/default.nix index 236b5000d..e8ed18f0d 100644 --- a/krebs/2configs/shack/glados/default.nix +++ b/krebs/2configs/shack/glados/default.nix @@ -3,29 +3,26 @@ 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 = { 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" ]; + extraOptions = ["--net=host" "--device=/dev/zigbee" ]; volumes = [ "${confdir}:/config" + "${./zigbee-quirks}:/quirks" #"${confdir}/docker-run:/etc/services.d/home-assistant/run:" ]; }; 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" = { |