nix-config/users/modules/wlsunset.nix

25 lines
508 B
Nix
Raw Normal View History

{
config,
lib,
...
}:
with lib; let
cfg = config.modules.wlsunset;
in {
options.modules.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;
};
}