nixos-conf/services/redshift.nix

27 lines
447 B
Nix
Raw Normal View History

{ config, ... }:
{
2024-06-06 22:16:29 +03:00
assertions = [
{
assertion = config.services.xserver.enable;
message = "Redshift does not work without a desktop!";
}
];
2024-09-06 20:22:42 +03:00
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;
};
}