MPV: Difference between revisions

DoggoBit (talk | contribs)
fix image
Zeal (talk | contribs)
Wanted to show how you'd use mpvScripts without using Home Manager.
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:mpv}}
{{Infobox application
{{Infobox application
| name = mpv
| name = mpv
Line 7: Line 8:
| bugTracker = [https://github.com/mpv-player/mpv/issues GitHub Issues]
| bugTracker = [https://github.com/mpv-player/mpv/issues GitHub Issues]
| github = mpv-player/mpv
| github = mpv-player/mpv
| firstRelease = 7 August 2023
| latestRelease = 0.40.0; 11 June 2025
| latestRelease = 0.40.0
| os = Linux, macOS, Windows
| os = Linux, macOS, Windows
| programmingLanguage = C
| programmingLanguage = C
| initialRelease = 7 August 2023
}}
}}


Line 29: Line 30:
</syntaxhighlight>
</syntaxhighlight>
==== With Home Manager ====
==== With Home Manager ====
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">home.packages = [  
home.packages = [  
   pkgs.mpv  
   pkgs.mpv  
];
];</syntaxhighlight>'''With mpvScripts'''<syntaxhighlight lang="nix">{ pkgs, ... }:
</syntaxhighlight>
{
  environment.systemPackages = with pkgs; [
    ( mpv.override { scripts = [
      mpvScripts.uosc
      mpvScripts.sponsorblock
    ]; } )
  ];
}</syntaxhighlight>
 
== Configuration ==
== Configuration ==