summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'nixos')
-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