2024-09-09 00:22:14 +00:00
|
|
|
{
|
2024-09-13 01:50:53 +00:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.custom.services.gammastep;
|
|
|
|
in {
|
|
|
|
options.custom.services.gammastep.enable = mkOption {default = false;};
|
2024-09-09 00:22:14 +00:00
|
|
|
|
|
|
|
config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
|
|
|
|
# https://gitlab.com/chinstrap/gammastep
|
|
|
|
services.gammastep = {
|
|
|
|
enable = true;
|
|
|
|
enableVerboseLogging = true;
|
|
|
|
provider = "geoclue2"; # geoclue2 service must be enabled
|
|
|
|
|
|
|
|
temperature = {
|
|
|
|
day = 5000;
|
|
|
|
night = 4000;
|
|
|
|
};
|
|
|
|
|
|
|
|
# TODO: Add keybinds
|
|
|
|
settings.general = {
|
|
|
|
brightness-day = 1;
|
2024-10-22 01:00:55 +00:00
|
|
|
brightness-night = 0.4;
|
2024-09-09 00:22:14 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|