2025-05-04 14:27:15 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
2025-07-27 22:50:25 +02:00
|
|
|
cfg = config.home.desktop.wlsunset;
|
2025-05-04 14:27:15 +02:00
|
|
|
in {
|
2025-07-27 22:50:25 +02:00
|
|
|
options.home.desktop.wlsunset = {
|
2025-05-04 14:27:15 +02:00
|
|
|
enable = mkEnableOption "Enables wlsunset";
|
|
|
|
latitude = mkOption {
|
|
|
|
type = with types; nullOr (oneOf [str ints.unsigned float]);
|
|
|
|
default = 48.5;
|
|
|
|
};
|
|
|
|
longitude = mkOption {
|
|
|
|
type = with types; nullOr (oneOf [str ints.unsigned float]);
|
|
|
|
default = 2.2;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config.services.wlsunset = mkIf cfg.enable {
|
|
|
|
inherit (cfg) enable latitude longitude;
|
|
|
|
};
|
|
|
|
}
|