Added MPV

This commit is contained in:
FredzyW 2024-09-23 13:32:35 +02:00
parent 0bf5af8da2
commit caa5d90b82
2 changed files with 25 additions and 1 deletions

View file

@ -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
View 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;
};
};
}