Files
dotfiles/home/services/wallpaperengine.nix
uttarayan21 32ee60eae4 feat(home): add RetroArch for device "ryu" and update MPV config
Add RetroArch as a home package for devices named "ryu" and enhance MPV configuration with GPU settings. Adjust wallpaper engine service to improve performance. Add a script for enabling HDR with Steam commands.
2025-10-23 00:43:16 +05:30

33 lines
797 B
Nix

{
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 --silent --no-audio-processing -f 15 --scaling fill --screen-root HDMI-A-1 --bg 2780316434";
Restart = "on-failure";
RestartSec = 5;
TimeoutStartSec = 30;
};
Install = {
WantedBy = ["hyprland-session.target"];
};
};
}