nixos-config/nixos/machines/pepe/home-assistant/zigbee2mqtt/configurationHelper.nix

13 lines
302 B
Nix
Raw Normal View History

2020-11-22 01:58:32 +01:00
{ config, lib, pkgs, ... }:
with lib;
2020-11-22 15:01:19 +01:00
let cfg = config.services.zigbee2mqttConfiguration;
2020-11-22 01:58:32 +01:00
in {
options.services.zigbee2mqttConfiguration = mkOption {
type = with types; attrs;
description = ''
2020-11-22 15:01:19 +01:00
device definitions
2020-11-22 01:58:32 +01:00
'';
};
2020-11-22 15:01:19 +01:00
config = { services.zigbee2mqtt.config.devices = cfg; };
2020-11-22 01:58:32 +01:00
}