services: add wlsunset
This commit is contained in:
parent
70b2750f5d
commit
81a14cc3ed
2 changed files with 31 additions and 0 deletions
options/custom/services
|
@ -53,6 +53,7 @@ with lib; {
|
|||
sysprof.enable = true;
|
||||
systemd-lock-handler.enable = true;
|
||||
usbmuxd.enable = true;
|
||||
#// wlsunset.enable = true;
|
||||
#// xembed-sni-proxy.enable = true;
|
||||
#// zerotierone.enable = true;
|
||||
})
|
||||
|
|
30
options/custom/services/wlsunset.nix
Normal file
30
options/custom/services/wlsunset.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.custom.services.wlsunset;
|
||||
in {
|
||||
options.custom.services.wlsunset = {
|
||||
enable = mkEnableOption "wlsunset";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.sharedModules = [
|
||||
{
|
||||
# https://sr.ht/~kennylevinsen/wlsunset/
|
||||
services.wlsunset = {
|
||||
enable = true;
|
||||
sunrise = "08:00";
|
||||
sunset = "20:00";
|
||||
|
||||
temperature = {
|
||||
day = 5000;
|
||||
night = 4000;
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue