migrate to zigbee2mqtt
This commit is contained in:
parent
35b01a0378
commit
ff38de4a26
1 changed files with 14 additions and 2 deletions
|
@ -12,7 +12,7 @@
|
||||||
in {
|
in {
|
||||||
imports = [../nginx.nix ./virtualisation.nix];
|
imports = [../nginx.nix ./virtualisation.nix];
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [port 1883];
|
networking.firewall.allowedTCPPorts = [port 1883 8089];
|
||||||
services.mosquitto = {
|
services.mosquitto = {
|
||||||
enable = true;
|
enable = true;
|
||||||
listeners = [
|
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 = {
|
services.nginx = {
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"bolty.raptor-carp.ts.net" = {
|
"bolty.raptor-carp.ts.net" = {
|
||||||
|
|
Loading…
Reference in a new issue