Files
nix-config/home-manager/hyprland/hyprshade.nix
2025-03-19 20:53:46 +01:00

18 lines
554 B
Nix

{ osConfig, pkgs, lib, ... }:
let cfg = osConfig.custom.graphical.hyprland;
in {
config = lib.mkIf cfg.enable {
home.activation.hyprshade = {
after = [ "writeBoundary" ];
before = [ ];
data = ''
${pkgs.hyprshade}/bin/hyprshade install
${pkgs.systemd}/bin/systemctl --user enable --now hyprshade.timer
'';
};
home.file.".config/hypr/hyprshade.toml".source = ../../.config/hypr/hyprshade.toml;
wayland.windowManager.hyprland.settings.exec-once = [ "${pkgs.hyprshade}/bin/hyprshade auto" ];
};
}