change mpv config

This commit is contained in:
Dmitriy 2019-09-18 01:24:10 +04:00
parent 1bb7e79dfa
commit 5dbd7a9c2d

View File

@ -6,11 +6,15 @@ with deviceSpecific; {
home-manager.users.alukard.programs.mpv = {
enable = true;
config = {
vo = "gpu";
hwdec = if video == "nvidia" then
"vdpau"
else
"vaapi";
ytdl-format = if isLaptop then
"bestvideo[height<=?1080]+bestaudio/best"
else
"bestvideo+bestaudio/best";
# cache-default = 4000000;
};
};
}