nix-dotfiles/modules/desktop/gammastep.nix

19 lines
381 B
Nix

{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.modules.desktop.gammastep;
in {
options.modules.desktop.gammastep = {
enable = mkEnableOption "Enable gammastep, a blue-light filter for Wayland desktop environments";
};
config = mkIf cfg.enable {
hm.services.gammastep = {
enable = true;
tray = true;
provider = "geoclue2";
};
};
}