flake/home/applications/mpv/default.nix

30 lines
489 B
Nix
Raw Normal View History

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-01-16 03:31:36 +00:00
scripts =
(with pkgs.mpvScripts; [
2023-12-13 11:02:11 +00:00
thumbfast
2024-01-16 04:04:27 +00:00
sponsorblock
2024-04-05 08:18:45 +00:00
modernx-zydezu
2024-01-16 03:31:36 +00:00
])
++ lib.optionals pkgs.stdenv.hostPlatform.isLinux (with pkgs.mpvScripts; [
2023-12-14 08:07:54 +00:00
mpris
]);
2023-12-12 18:53:45 +00:00
};
2023-11-28 05:40:22 +00:00
}