nix/modules/home-manager/wallpaper-manager.nix

22 lines
423 B
Nix

{
pkgs,
lib,
...
}: {
systemd.user.services.variety = {
Unit = {
Description = "Wallapaper downloader and changer";
After = ["graphical-session.target"];
};
Install.WantedBy = ["graphical-session.target"];
Service = {
Environment = [
"PATH=${lib.makeBinPath (with pkgs; [variety])}"
];
ExecStart = ''
${pkgs.variety}/bin/variety
'';
};
};
}