From 28e190025c4d13bdec6fb3d1d70377ead66a26b5 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 15 Dec 2024 17:13:16 +0100 Subject: [PATCH] Migrate mpv override and options --- users/simon/modules/mpv/default.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/users/simon/modules/mpv/default.nix b/users/simon/modules/mpv/default.nix index a52492a..c441cce 100644 --- a/users/simon/modules/mpv/default.nix +++ b/users/simon/modules/mpv/default.nix @@ -53,21 +53,21 @@ in # mpv can also be useful without a display (e.g. for encoding) enable = nixosConfig.sbruder.gui.enable || nixosConfig.sbruder.full; - package = pkgs.wrapMpv - (pkgs.mpv-unwrapped.override ({ + package = pkgs.mpv-unwrapped.wrapper { + mpv = pkgs.mpv-unwrapped.override { vapoursynthSupport = true; vapoursynth = pkgs.vapoursynth.withPlugins (with pkgs; [ vapoursynth-mvtools ]); ffmpeg = pkgs.ffmpeg-full; - })) - { - scripts = with pkgs.mpvScripts; [ - pitchcontrol - sponsorblock - ]; }; + scripts = with pkgs.mpvScripts; [ + pitchcontrol + sponsorblock + ]; + }; + defaultProfiles = [ "gpu-hq" # High quality by default ]; @@ -189,7 +189,7 @@ in "[showwaves][avectorscope]hstack=shortest=1[top]" "[top][showcqt]vstack=shortest=1,fps=${toString rate}[vo]" ]; - alpha = false; + background = "color"; }; in {