nix-config/modules/home-manager/redshift.nix

20 lines
364 B
Nix
Raw Normal View History

2025-06-09 22:34:06 +01:00
{ config, lib, ... }:
let
2025-07-09 08:00:00 +01:00
cfg = config.features.desktop.redshift;
2025-06-09 22:34:06 +01:00
inherit (lib) mkEnableOption mkIf;
in
{
2025-07-09 08:00:00 +01:00
options.features.desktop.redshift = {
2025-06-09 22:34:06 +01:00
enable = mkEnableOption "Enable redshift";
};
config = mkIf cfg.enable {
services.redshift.enable = true;
services.redshift.latitude = "51.58";
services.redshift.longitude = "-2.99";
};
}