nixos-conf/modules/programs/redshift.nix

31 lines
538 B
Nix
Raw Normal View History

{ config, lib, ... }:
let
2025-07-06 03:22:09 +03:00
cfg = config.custom.programs.redshift;
in
{
2025-07-06 03:22:09 +03:00
options.custom.programs.redshift.enable = lib.mkOption {
type = lib.types.bool;
default = false;
};
config = lib.mkIf cfg.enable {
services.redshift = {
executable = "/bin/redshift-gtk";
enable = true;
temperature = {
night = 2800;
day = 6500;
};
brightness = {
night = "0.5";
day = "1";
};
};
location = {
latitude = 60.17;
longitude = 24.94;
};
};
}