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";
|
|
|
|
};
|
2023-12-13 11:02:11 +00:00
|
|
|
scripts = with pkgs.mpvScripts;
|
|
|
|
[
|
|
|
|
thumbfast
|
|
|
|
]
|
2023-12-14 08:07:54 +00:00
|
|
|
++ lib.optionals (!pkgs.stdenv.hostPlatform.isDarwin) (with pkgs.mpvScripts; [
|
|
|
|
mpris
|
|
|
|
]);
|
2023-12-12 18:53:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# for scripts that is not in nixpkgs
|
|
|
|
xdg.configFile = let
|
|
|
|
modernX = pkgs.fetchFromGitHub {
|
|
|
|
owner = "zydezu";
|
|
|
|
repo = "modernX";
|
|
|
|
rev = "10f74d29f86cbfb307181ecfa564402f993b073d";
|
|
|
|
hash = "sha256-ozbOsVGdllB+E4UtERynhe5Eng3nKnL/IIEtT4yVdOI=";
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
"mpv/scripts/modernx.lua".source = "${modernX}/modernx.lua";
|
|
|
|
"mpv/fonts/Material-Design-Iconic-Font.ttf".source = "${modernX}/Material-Design-Iconic-Font.ttf";
|
|
|
|
"mpv/fonts/Material-Design-Iconic-Round.ttf".source = "${modernX}/Material-Design-Iconic-Round.ttf";
|
|
|
|
};
|
2023-11-28 05:40:22 +00:00
|
|
|
}
|