nixos-config/configs/pepe/home-assistant/zigbee2mqtt.nix
2020-10-21 00:24:16 +02:00

21 lines
552 B
Nix

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