Add a night-light module
This commit is contained in:
parent
5961a65af5
commit
5aab908591
2 changed files with 26 additions and 1 deletions
19
module.nix
Normal file
19
module.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.services.nightLight;
|
||||
in
|
||||
{
|
||||
options.services.nightLight = {
|
||||
enable = mkEnableOption "Night Light";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.zigbee2mqtt.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue