summaryrefslogtreecommitdiff
path: root/nixos/ev-configuration.nix
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2024-12-21 15:12:54 +0100
committerMartin Fischer <martin@push-f.com>2024-12-21 20:39:29 +0100
commitd04945f18cefae6aefb7aa54dadabdda09a0c3a9 (patch)
tree3bd13a3d3c7cfd9aa4dae03cdef056fb95191fb9 /nixos/ev-configuration.nix
parent4efed3c4d77afac337ff0302b0c9c887be638a40 (diff)
ev: add zigbee2mqtt and mosquitto
Diffstat (limited to 'nixos/ev-configuration.nix')
-rw-r--r--nixos/ev-configuration.nix18
1 files changed, 18 insertions, 0 deletions
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