diff --git a/nixos/boxes/bolty/home-assistant.nix b/nixos/boxes/bolty/home-assistant.nix index 57d0db39..c026ea30 100644 --- a/nixos/boxes/bolty/home-assistant.nix +++ b/nixos/boxes/bolty/home-assistant.nix @@ -12,7 +12,7 @@ in { imports = [../nginx.nix ./virtualisation.nix]; - networking.firewall.allowedTCPPorts = [port 1883]; + networking.firewall.allowedTCPPorts = [port 1883 8089]; services.mosquitto = { enable = true; listeners = [ @@ -27,7 +27,19 @@ in { } ]; }; - + services.zigbee2mqtt = { + enable = true; + settings = { + homeassistant = true; + permit_join = true; + frontend.port = 8089; + mqtt.server = "mqtt://10.0.0.8:1883"; + serial = { + port = "/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0"; + baudrate = 115200; + }; + }; + }; services.nginx = { virtualHosts = { "bolty.raptor-carp.ts.net" = {