1
1
Fork 0
nixos/options/custom/services/gammastep.nix
Myned 69ea41f7f2
gammastep: lower min brightness
Signed-off-by: Myned <dev@bjork.tech>
2024-10-21 20:01:21 -05:00

30 lines
642 B
Nix

{
config,
lib,
...
}:
with lib; let
cfg = config.custom.services.gammastep;
in {
options.custom.services.gammastep.enable = mkOption {default = false;};
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;
brightness-night = 0.4;
};
};
};
}