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

27 lines
539 B
Nix
Raw Permalink Normal View History

2024-01-30 19:36:52 -06:00
{
pkgs,
lib,
...
}: {
systemd.user.services.variety = {
Unit = {
Description = "Wallapaper downloader and changer";
After = ["graphical-session.target"];
};
Install.WantedBy = ["graphical-session.target"];
Service = {
Environment = [
2024-02-02 00:00:54 -06:00
"PATH=${lib.makeBinPath (with pkgs; [
variety
dbus
2024-02-02 00:00:54 -06:00
(lib.getBin pkgs.plasma5Packages.qttools)
libsForQt5.kdialog
])}"
2024-01-30 19:36:52 -06:00
];
ExecStart = ''
${pkgs.variety}/bin/variety
'';
};
};
}