35 lines
916 B
Nix
35 lines
916 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
inputs,
|
|
...
|
|
}: {
|
|
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
|
|
])
|
|
++ (with inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.mpvScripts; [
|
|
modernx
|
|
])
|
|
++ lib.optionals pkgs.stdenv.hostPlatform.isLinux (with pkgs.mpvScripts; [
|
|
mpris
|
|
]);
|
|
};
|
|
|
|
# I dont know how to handle the font
|
|
xdg.configFile = with inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.mpvScripts; {
|
|
"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";
|
|
};
|
|
}
|