From d04945f18cefae6aefb7aa54dadabdda09a0c3a9 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 21 Dec 2024 15:12:54 +0100 Subject: ev: add zigbee2mqtt and mosquitto --- nixos/ev-configuration.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'nixos/ev-configuration.nix') diff --git a/nixos/ev-configuration.nix b/nixos/ev-configuration.nix index 11acf3f..91aeab6 100644 --- a/nixos/ev-configuration.nix +++ b/nixos/ev-configuration.nix @@ -39,6 +39,24 @@ ]; networking.firewall.allowedUDPPorts = []; + services = { + zigbee2mqtt = { + enable = true; + settings = { + serial = { + port = "/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_e2fed465c59ded11962fd7a5a7669f5d-if00-port0"; + }; + frontend = { + port = 8080; + }; + }; + }; + + mosquitto = { + enable = true; + }; + }; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave -- cgit v1.2.3