{ pkgs, lib, config, ... }: { imports = [ ./mqtt.nix ./zigbee2mqtt/buttons.nix ./zigbee2mqtt/doors.nix ./zigbee2mqtt/heater.nix ./zigbee2mqtt/leds.nix ./zigbee2mqtt/lights.nix ./zigbee2mqtt/motion.nix ./zigbee2mqtt/repeater.nix ./zigbee2mqtt/service.nix ./zigbee2mqtt/temperatur.nix ./zigbee2mqtt/windows.nix ]; services.zigbee2mqtt = { enable = true; mqttPassword = lib.fileContents ; networkKey = import ; # only turn on for new devices, usually turn of for security reasons. discover = false; }; }