MPV: Difference between revisions
m lowercase name |
Wanted to show how you'd use mpvScripts without using Home Manager. |
||
Line 30: | 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 == | ||