Skip to content

Commit 32ee60e

Browse files
committed
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.
1 parent d1980ac commit 32ee60e

File tree

5 files changed

+27
-1
lines changed

5 files changed

+27
-1
lines changed

home/apps/mpv.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
{pkgs, ...}: {
22
programs.mpv = {
33
enable = true;
4+
config = {
5+
vo = "gpu-next";
6+
gpu-api = "vulkan";
7+
# hdr-compute-peak = "yes";
8+
# hdr-peak-detect = "yes";
9+
# target-peak = 400;
10+
# target-prim = "bt.2020";
11+
# target-trc = "pq";
12+
# inverse-tone-mapping = "yes";
13+
# tone-mapping = "spline";
14+
# tone-mapping-mode = "auto";
15+
# target-colorspace-hint = "auto";
16+
# gamut-mapping = "desaturate";
17+
};
418
package =
519
if pkgs.stdenv.isLinux
620
then pkgs.mpv-unwrapped.wrapper {mpv = pkgs.mpv-unwrapped.override {sixelSupport = true;};}

home/programs/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
./yazi.nix
3939
./yt-dlp.nix
4040
./zoxide.nix
41+
./retroarch.nix
4142

4243
# ./goread.nix
4344
# ./helix.nix

home/programs/retroarch.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
pkgs,
3+
device,
4+
lib,
5+
...
6+
}: {
7+
home.packages = lib.optionals (device.name == "ryu") [pkgs.retroarch-full];
8+
}

home/services/wallpaperengine.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ lib.mkIf (device.is "ryu") {
1919
];
2020
Type = "simple";
2121
ExecStartPre = "${pkgs.coreutils}/bin/sleep 3";
22-
ExecStart = "${pkgs.linux-wallpaperengine}/bin/linux-wallpaperengine -s --scaling fill --screen-root HDMI-A-1 --bg 2780316434";
22+
ExecStart = "${pkgs.linux-wallpaperengine}/bin/linux-wallpaperengine --silent --no-audio-processing -f 15 --scaling fill --screen-root HDMI-A-1 --bg 2780316434";
2323
Restart = "on-failure";
2424
RestartSec = 5;
2525
TimeoutStartSec = 30;

scripts/hdr-steamcommand

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ENABLE_HDR_WSI=1 DXVK_HDR=1 gamescope -W 2560 -H 1440 -r 240 -e --hdr-enabled -- %command%
2+
3+
PROTON_ENABLE_WAYLAND=1 PROTON_ENABLE_HDR=1 %command%

0 commit comments

Comments
 (0)