1
1
Fork 0

services: add wlsunset

This commit is contained in:
Myned 2025-04-13 21:25:53 -05:00
parent 70b2750f5d
commit 81a14cc3ed
Signed by: myned
GPG key ID: C7224454F7881A34
2 changed files with 31 additions and 0 deletions
options/custom/services

View file

@ -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;
})

View 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;
};
};
}
];
};
}