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.
24 lines
633 B
Nix
24 lines
633 B
Nix
{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;};}
|
|
else pkgs.mpv;
|
|
};
|
|
}
|