mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-23 05:43:55 -05:00
18 lines
512 B
Nix
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;
|
|
};
|
|
}
|