2023-12-13 11:02:11 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2023-12-12 18:53:45 +00:00
|
|
|
programs.mpv = {
|
|
|
|
enable = true;
|
|
|
|
config = {
|
2023-12-14 08:07:54 +00:00
|
|
|
ao = "pipewire,";
|
|
|
|
vo = "gpu-next,gpu,";
|
|
|
|
|
2023-12-12 18:53:45 +00:00
|
|
|
hwdec = "auto-safe";
|
|
|
|
profile = "gpu-hq";
|
|
|
|
osc = "no";
|
2024-06-01 21:48:22 +00:00
|
|
|
|
|
|
|
alang = "jpn,ja";
|
|
|
|
slang = "eng,en";
|
2023-12-12 18:53:45 +00:00
|
|
|
};
|
2024-06-11 17:00:11 +00:00
|
|
|
|
|
|
|
# FIXME: https://github.com/nix-community/home-manager/pull/5524
|
|
|
|
package = pkgs.mpv-unwrapped.wrapper {
|
|
|
|
mpv = pkgs.mpv-unwrapped;
|
|
|
|
scripts =
|
|
|
|
(with pkgs.mpvScripts; [
|
|
|
|
thumbfast
|
|
|
|
sponsorblock
|
|
|
|
modernx-zydezu
|
|
|
|
])
|
|
|
|
++ lib.optionals pkgs.stdenv.hostPlatform.isLinux (with pkgs.mpvScripts; [
|
|
|
|
mpris
|
|
|
|
]);
|
|
|
|
};
|
2023-12-12 18:53:45 +00:00
|
|
|
};
|
2023-11-28 05:40:22 +00:00
|
|
|
}
|