25 lines
518 B
Nix
Raw Normal View History

{
config,
lib,
...
}:
with lib; let
2025-07-27 22:50:25 +02:00
cfg = config.home.desktop.wlsunset;
in {
2025-07-27 22:50:25 +02:00
options.home.desktop.wlsunset = {
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;
};
}