nixcfg/homeManagerModules/desktopEnv/hypr/hyprshade/default.nix
2024-03-30 13:59:06 -04:00

18 lines
512 B
Nix

{ pkgs, lib, config, ... }: {
options = {
desktopEnv.hyprland.hyprshade.enable =
lib.mkEnableOption "Enables hyprshade with blue light filter.";
};
config = lib.mkIf config.desktopEnv.hyprland.hyprshade.enable {
# Packages that should be installed to the user profile.
home.packages = with pkgs; [ hyprshade ];
xdg.configFile."hypr/shaders/blue-light-filter.glsl".source =
./blue-light-filter.glsl;
xdg.configFile."hypr/hyprshade.toml".source = ./hyprshade.toml;
};
}