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, ...}: {
|
||||
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;};}
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
./yazi.nix
|
||||
./yt-dlp.nix
|
||||
./zoxide.nix
|
||||
./retroarch.nix
|
||||
|
||||
# ./goread.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";
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user