MPV: Difference between revisions
m Removed numbering |
m remove unnecessary description (see MoS), clean up headings (TODO: scripts, NixOS configuration) |
||
Line 1: | Line 1: | ||
[https://mpv.io/ MPV] is an open-source command line media player | [https://mpv.io/ MPV] is an open-source command line media player. | ||
== Installation == | == Installation == | ||
==== | ==== With nix-shell ==== | ||
<syntaxhighlight lang="bash" start="3"> | <syntaxhighlight lang="bash" start="3"> | ||
nix-shell -p mpv | nix-shell -p mpv | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== | ==== With NixOS ==== | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
environment.systemPackages = [ | environment.systemPackages = [ | ||
pkgs.mpv | pkgs.mpv | ||
]; | ]; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== With Home Manager ==== | |||
==== | |||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
home.packages = [ | home.packages = [ | ||
pkgs.mpv | pkgs.mpv | ||
]; | ]; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Configuration == | |||
== | === With Home Manager === | ||
==== Basic ==== | ==== Basic ==== | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
programs.mpv | programs.mpv.enable = true; | ||
</syntaxhighlight> | </syntaxhighlight> | ||