21 lines
316 B
Nix
21 lines
316 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let
|
||
|
|
||
|
cfg = config.services.zigbee2mqttConfiguration;
|
||
|
|
||
|
in {
|
||
|
|
||
|
options.services.zigbee2mqttConfiguration = mkOption {
|
||
|
type = with types; attrs;
|
||
|
description = ''
|
||
|
device definitions.
|
||
|
'';
|
||
|
};
|
||
|
config = {
|
||
|
services.zigbee2mqtt.config.devices = cfg;
|
||
|
};
|
||
|
}
|