diff options
author | makefu <github@syntax-fehler.de> | 2024-04-24 23:46:57 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2024-04-24 23:46:57 +0200 |
commit | 658f5c74a3203f231dde5bd04e24ea3a56547db1 (patch) | |
tree | 1540accd1dcc5f0692c3ddd6bbd0dd16b2233ec7 /krebs/2configs | |
parent | c5a11854c5061895c61d916959d5ff838a19a1bf (diff) |
puyak: manage zigbee via home-assistant
Diffstat (limited to 'krebs/2configs')
-rw-r--r-- | krebs/2configs/news-host.nix | 3 | ||||
-rw-r--r-- | krebs/2configs/shack/glados/default.nix | 7 | ||||
-rw-r--r-- | krebs/2configs/shack/glados/zigbee.nix | 5 |
3 files changed, 10 insertions, 5 deletions
diff --git a/krebs/2configs/news-host.nix b/krebs/2configs/news-host.nix index 81922ef8..9b8627d6 100644 --- a/krebs/2configs/news-host.nix +++ b/krebs/2configs/news-host.nix @@ -1,5 +1,6 @@ -{ config, ... }: +{ config,lib, ... }: { + nixpkgs.config.allowUnfree = true; # "consul-1.18.0" krebs.sync-containers3.containers.news = { sshKey = "${config.krebs.secret.directory}/news.sync.key"; }; diff --git a/krebs/2configs/shack/glados/default.nix b/krebs/2configs/shack/glados/default.nix index 236b5000..23921c23 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:" diff --git a/krebs/2configs/shack/glados/zigbee.nix b/krebs/2configs/shack/glados/zigbee.nix new file mode 100644 index 00000000..a8967cc3 --- /dev/null +++ b/krebs/2configs/shack/glados/zigbee.nix @@ -0,0 +1,5 @@ +{ + services.udev.extraRules = '' + SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SYMLINK+="zigbee", MODE="0666" + ''; +} |