flake/home/applications/mpv/default.nix

36 lines
860 B
Nix
Raw Normal View History

2023-12-13 11:02:11 +00:00
{
pkgs,
lib,
2024-02-27 07:38:36 +00:00
config,
2023-12-13 11:02:11 +00:00
...
}: {
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-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-01-16 03:31:36 +00:00
])
2024-02-27 07:38:36 +00:00
++ (with config.nur.repos.guanran928.mpvScripts; [
2024-01-16 03:31:36 +00:00
modernx
])
++ 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
};
2024-01-16 03:31:36 +00:00
# I dont know how to handle the font
2024-02-27 07:38:36 +00:00
xdg.configFile = with config.nur.repos.guanran928.mpvScripts; {
2024-01-16 03:31:36 +00:00
"mpv/fonts/Material-Design-Iconic-Font.ttf".source = "${modernx}/share/mpv/fonts/Material-Design-Iconic-Font.ttf";
"mpv/fonts/Material-Design-Iconic-Round.ttf".source = "${modernx}/share/mpv/fonts/Material-Design-Iconic-Round.ttf";
2023-12-12 18:53:45 +00:00
};
2023-11-28 05:40:22 +00:00
}