flocon/modules/hm/programs/hypr/paper.nix
Anthony Rodriguez b808281674
treewide: config/home-manager -> modules/hm
Started moving HM config to the new local modules system. Conditionally
toggling based on profiles and modules.
2025-01-14 19:33:31 +01:00

22 lines
558 B
Nix

{
lib,
osConfig,
inputs,
pkgs,
...
}: {
config = lib.mkIf osConfig.local.modules.hyprland.enable {
services.hyprpaper = {
enable = true;
package = inputs.hyprpaper.packages.${pkgs.system}.default;
settings = {
preload = ["${osConfig.local.style.wallpaper}"];
wallpaper = [", ${osConfig.local.style.wallpaper}"];
};
};
systemd.user.services.hyprpaper.Unit.After = lib.mkForce "graphical-session.target";
systemd.user.services.hyprpaper.Service.Slice = "background-graphical.slice";
};
}