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.
This commit is contained in:
@@ -1,6 +1,20 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
programs.mpv = {
|
programs.mpv = {
|
||||||
enable = true;
|
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 =
|
package =
|
||||||
if pkgs.stdenv.isLinux
|
if pkgs.stdenv.isLinux
|
||||||
then pkgs.mpv-unwrapped.wrapper {mpv = pkgs.mpv-unwrapped.override {sixelSupport = true;};}
|
then pkgs.mpv-unwrapped.wrapper {mpv = pkgs.mpv-unwrapped.override {sixelSupport = true;};}
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
./yazi.nix
|
./yazi.nix
|
||||||
./yt-dlp.nix
|
./yt-dlp.nix
|
||||||
./zoxide.nix
|
./zoxide.nix
|
||||||
|
./retroarch.nix
|
||||||
|
|
||||||
# ./goread.nix
|
# ./goread.nix
|
||||||
# ./helix.nix
|
# ./helix.nix
|
||||||
|
|||||||
8
home/programs/retroarch.nix
Normal file
8
home/programs/retroarch.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
device,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = lib.optionals (device.name == "ryu") [pkgs.retroarch-full];
|
||||||
|
}
|
||||||
@@ -19,7 +19,7 @@ lib.mkIf (device.is "ryu") {
|
|||||||
];
|
];
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStartPre = "${pkgs.coreutils}/bin/sleep 3";
|
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";
|
Restart = "on-failure";
|
||||||
RestartSec = 5;
|
RestartSec = 5;
|
||||||
TimeoutStartSec = 30;
|
TimeoutStartSec = 30;
|
||||||
|
|||||||
3
scripts/hdr-steamcommand
Normal file
3
scripts/hdr-steamcommand
Normal file
@@ -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%
|
||||||
Reference in New Issue
Block a user