configuration.nix/home/wm/addon/wpaperd.nix

30 lines
746 B
Nix
Raw Permalink Normal View History

2024-06-01 01:45:08 +05:30
{ config, pkgs, ... }: {
programs.wpaperd = {
enable = true;
settings = {
default = {
duration = "10m";
mode = "stretch";
sorting = "random";
path = "${config.xdg.userDirs.pictures}/Wallpapers";
};
};
};
systemd.user.services.wpaperd = {
Unit = {
Description = "Modern wallpaper daemon for Wayland";
Documentation = "https://github.com/danyspin97/wpaperd";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session-pre.target" ];
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.wpaperd}/bin/wpaperd";
Restart = "on-failure";
KillMode = "mixed";
};
};
}