Added MPV
This commit is contained in:
parent
0bf5af8da2
commit
caa5d90b82
2 changed files with 25 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
||||||
../shared/aerc.nix
|
../shared/aerc.nix
|
||||||
../shared/rbw.nix
|
../shared/rbw.nix
|
||||||
../shared/oh-my-posh.nix
|
../shared/oh-my-posh.nix
|
||||||
|
../shared/mpv.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
|
@ -51,7 +52,6 @@
|
||||||
alsa-utils
|
alsa-utils
|
||||||
killall
|
killall
|
||||||
upower
|
upower
|
||||||
mpv
|
|
||||||
gcc
|
gcc
|
||||||
gnumake
|
gnumake
|
||||||
htop
|
htop
|
||||||
|
|
24
shared/mpv.nix
Normal file
24
shared/mpv.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{ pkgs, lib, myhostname, ... }:
|
||||||
|
{
|
||||||
|
programs.mpv = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
package = (
|
||||||
|
pkgs.mpv-unwrapped.wrapper {
|
||||||
|
scripts = with pkgs.mpvScripts; [
|
||||||
|
uosc
|
||||||
|
sponsorblock
|
||||||
|
];
|
||||||
|
|
||||||
|
mpv = pkgs.mpv-unwrapped.override {
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
config = {
|
||||||
|
profile = "high-quality";
|
||||||
|
ytdl-format = "bestvideo+bestaudio";
|
||||||
|
cache-default = 4000000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue