migrate to zigbee2mqtt

This commit is contained in:
Cyryl Płotnicki 2023-09-02 20:24:28 +01:00
parent 35b01a0378
commit ff38de4a26

View file

@ -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" = {