mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-19 08:07:14 +02:00
mpv: override with ffmpeg-full
Fixes an issue where some mpv features like subtitle support were broken due to not using ffmpeg-full. An override is used instead of an overlay here to prevent having to compile all packages that depend on mpv.
This commit is contained in:
parent
c8792a9230
commit
a652c40287
20
home/mpv.nix
20
home/mpv.nix
@ -4,6 +4,19 @@
|
||||
programs.mpv = {
|
||||
enable = true;
|
||||
|
||||
package = pkgs.mpv-unwrapped.wrapper {
|
||||
mpv = pkgs.mpv-unwrapped.override {
|
||||
ffmpeg = pkgs.ffmpeg-full;
|
||||
};
|
||||
|
||||
scripts = with pkgs.mpvScripts; [
|
||||
mpris
|
||||
uosc
|
||||
thumbfast
|
||||
mpv-subtitle-lines
|
||||
];
|
||||
};
|
||||
|
||||
config = {
|
||||
fullscreen = true;
|
||||
|
||||
@ -27,13 +40,6 @@
|
||||
"ctrl+f" = "script-binding subtitle_lines/list_subtitles";
|
||||
"Del" = "run \"trash\" \"\${path}\"; playlist_next";
|
||||
};
|
||||
|
||||
scripts = with pkgs.mpvScripts; [
|
||||
mpris
|
||||
uosc
|
||||
thumbfast
|
||||
mpv-subtitle-lines
|
||||
];
|
||||
};
|
||||
|
||||
xdg.configFile."mpv/script-opts/uosc.conf".text = lib.concatStrings [
|
||||
|
Loading…
x
Reference in New Issue
Block a user