Files
dotfiles/home/apps/mpv.nix
uttarayan21 32ee60eae4 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.
2025-10-23 00:43:16 +05:30

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;
};
}