From 32ee60eae46228ba4b1dbc453bfa749ec4793601 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Thu, 23 Oct 2025 00:43:16 +0530 Subject: [PATCH] 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. --- home/apps/mpv.nix | 14 ++++++++++++++ home/programs/default.nix | 1 + home/programs/retroarch.nix | 8 ++++++++ home/services/wallpaperengine.nix | 2 +- scripts/hdr-steamcommand | 3 +++ 5 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 home/programs/retroarch.nix create mode 100644 scripts/hdr-steamcommand diff --git a/home/apps/mpv.nix b/home/apps/mpv.nix index 136461de..ec431522 100644 --- a/home/apps/mpv.nix +++ b/home/apps/mpv.nix @@ -1,6 +1,20 @@ {pkgs, ...}: { programs.mpv = { enable = true; + config = { + vo = "gpu-next"; + gpu-api = "vulkan"; + # hdr-compute-peak = "yes"; + # hdr-peak-detect = "yes"; + # target-peak = 400; + # target-prim = "bt.2020"; + # target-trc = "pq"; + # inverse-tone-mapping = "yes"; + # tone-mapping = "spline"; + # tone-mapping-mode = "auto"; + # target-colorspace-hint = "auto"; + # gamut-mapping = "desaturate"; + }; package = if pkgs.stdenv.isLinux then pkgs.mpv-unwrapped.wrapper {mpv = pkgs.mpv-unwrapped.override {sixelSupport = true;};} diff --git a/home/programs/default.nix b/home/programs/default.nix index 4aa6a113..5e28f1c6 100644 --- a/home/programs/default.nix +++ b/home/programs/default.nix @@ -38,6 +38,7 @@ ./yazi.nix ./yt-dlp.nix ./zoxide.nix + ./retroarch.nix # ./goread.nix # ./helix.nix diff --git a/home/programs/retroarch.nix b/home/programs/retroarch.nix new file mode 100644 index 00000000..37ca3afa --- /dev/null +++ b/home/programs/retroarch.nix @@ -0,0 +1,8 @@ +{ + pkgs, + device, + lib, + ... +}: { + home.packages = lib.optionals (device.name == "ryu") [pkgs.retroarch-full]; +} diff --git a/home/services/wallpaperengine.nix b/home/services/wallpaperengine.nix index a09ad659..6e3914cb 100644 --- a/home/services/wallpaperengine.nix +++ b/home/services/wallpaperengine.nix @@ -19,7 +19,7 @@ lib.mkIf (device.is "ryu") { ]; Type = "simple"; ExecStartPre = "${pkgs.coreutils}/bin/sleep 3"; - ExecStart = "${pkgs.linux-wallpaperengine}/bin/linux-wallpaperengine -s --scaling fill --screen-root HDMI-A-1 --bg 2780316434"; + 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; diff --git a/scripts/hdr-steamcommand b/scripts/hdr-steamcommand new file mode 100644 index 00000000..1b06044d --- /dev/null +++ b/scripts/hdr-steamcommand @@ -0,0 +1,3 @@ +ENABLE_HDR_WSI=1 DXVK_HDR=1 gamescope -W 2560 -H 1440 -r 240 -e --hdr-enabled -- %command% + +PROTON_ENABLE_WAYLAND=1 PROTON_ENABLE_HDR=1 %command%