Skip to content

Commit

Permalink
home/programs/services/hyprpaper: use HM module (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
different-name authored Jul 2, 2024
1 parent 5abec70 commit 36c38db
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions home/services/wayland/hyprpaper.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,13 @@
config,
...
}: {
xdg.configFile."hypr/hyprpaper.conf".text = ''
preload = ${config.theme.wallpaper}
wallpaper = , ${config.theme.wallpaper}
'';
services.hyprpaper = {
enable = true;
package = inputs.hyprpaper.packages.${pkgs.system}.default;

systemd.user.services.hyprpaper = {
Unit = {
Description = "Hyprland wallpaper daemon";
PartOf = ["graphical-session.target"];
settings = {
preload = [ "${config.theme.wallpaper}" ];
wallpaper = [ ", ${config.theme.wallpaper}" ];
};
Service = {
ExecStart = "${lib.getExe inputs.hyprpaper.packages.${pkgs.system}.default}";
Restart = "on-failure";
};
Install.WantedBy = ["graphical-session.target"];
};
}

0 comments on commit 36c38db

Please sign in to comment.