feat(services): add wallpaperengine service and update configs

This commit is contained in:
uttarayan21
2025-10-21 15:41:59 +05:30
parent 5fe2e20829
commit 8ac3e4a723
5 changed files with 117 additions and 85 deletions

View File

@@ -0,0 +1,32 @@
{
pkgs,
device,
lib,
...
}:
lib.mkIf (device.is "ryu") {
systemd.user.services.wallpaperengine = {
Unit = {
Description = "Linux Wallpaper Engine";
After = ["hyprland-session.target"];
Wants = ["hyprland-session.target"];
PartOf = ["hyprland-session.target"];
};
Service = {
Environment = [
"XDG_SESSION_TYPE=wayland"
];
Type = "simple";
ExecStartPre = "${pkgs.coreutils}/bin/sleep 3";
ExecStart = "${pkgs.linux-wallpaperengine}/bin/linux-wallpaperengine --scaling fill --screen-root HDMI-A-1 --bg 2780316434";
Restart = "on-failure";
RestartSec = 5;
TimeoutStartSec = 30;
};
Install = {
WantedBy = ["hyprland-session.target"];
};
};
}