{ pkgs, lib, config, ... }: { imports = [ ./mqtt.nix ./zigbee2mqtt/buttons.nix ./zigbee2mqtt/configurationHelper.nix ./zigbee2mqtt/doors.nix ./zigbee2mqtt/fyrtur.nix ./zigbee2mqtt/heater.nix ./zigbee2mqtt/leds.nix ./zigbee2mqtt/lights.nix ./zigbee2mqtt/motion.nix ./zigbee2mqtt/repeater.nix ./zigbee2mqtt/temperatur.nix ]; #services.zigbee2mqtt = { # enable = true; # mqttPassword = lib.fileContents ; # networkKey = import ; # # only turn on for new devices, usually turn of for security reasons. # discover = true; #}; # new services.zigbee2mqtt = { enable = true; config = { # Home Assistant integration (MQTT discovery) homeassistant = false; # allow new devices to join permit_join = true; # MQTT settings mqtt = { # MQTT base topic for zigbee2mqtt MQTT messages base_topic = "zigbee2mqtt"; # MQTT server URL server = "mqtt://127.0.0.1:1883"; # MQTT server authentication, uncomment if required: user = "zigbee"; password = lib.fileContents ; }; # Serial settings serial = { port = "/dev/ttyACM0"; # disable LED of CC2531 USB sniffer disable_led = true; }; # you own network key, # 16 numbers between 0 and 255 # see https://www.zigbee2mqtt.io/how_tos/how_to_secure_network.html advanced.network_key = import ; # todo : devices should be defined later #devices = cfg.devices; }; }; }