flake/home/applications/mpv/default.nix

26 lines
440 B
Nix

{
pkgs,
lib,
...
}: {
programs.mpv = {
enable = true;
config = {
ao = "pipewire,";
vo = "gpu-next,gpu,";
hwdec = "auto-safe";
profile = "gpu-hq";
osc = "no";
};
scripts =
(with pkgs.mpvScripts; [
thumbfast
sponsorblock
modernx-zydezu
])
++ lib.optionals pkgs.stdenv.hostPlatform.isLinux (with pkgs.mpvScripts; [
mpris
]);
};
}