2019-09-17 16:48:19 +04:00
|
|
|
{ config, lib, pkgs, ... }:
|
2020-08-15 19:36:16 +04:00
|
|
|
{
|
2019-09-17 02:20:32 +04:00
|
|
|
home-manager.users.alukard.programs.mpv = {
|
|
|
|
enable = true;
|
2019-09-17 16:48:19 +04:00
|
|
|
config = {
|
2019-09-18 01:24:10 +04:00
|
|
|
vo = "gpu";
|
2022-01-29 00:41:41 +03:00
|
|
|
gpu-context = "wayland";
|
|
|
|
save-position-on-quit = "yes";
|
2021-02-07 02:38:11 +03:00
|
|
|
hwdec = if config.deviceSpecific.devInfo.gpu.vendor == "nvidia" then
|
2019-09-18 01:24:10 +04:00
|
|
|
"vdpau"
|
|
|
|
else
|
|
|
|
"vaapi";
|
2021-02-07 02:38:11 +03:00
|
|
|
ytdl-format = if config.deviceSpecific.isLaptop then
|
2019-09-17 16:48:19 +04:00
|
|
|
"bestvideo[height<=?1080]+bestaudio/best"
|
2019-09-17 02:20:32 +04:00
|
|
|
else
|
2022-01-29 00:41:41 +03:00
|
|
|
"bestvideo[height<=?2160]+bestaudio/best";
|
2019-09-17 23:07:22 +04:00
|
|
|
};
|
2019-09-17 02:20:32 +04:00
|
|
|
};
|
2022-01-29 00:41:41 +03:00
|
|
|
home-manager.users.alukard.home.file.".config/yt-dlp/config" = {
|
2019-09-22 01:32:26 +04:00
|
|
|
text = ''
|
2022-04-22 02:14:31 +03:00
|
|
|
--cookies-from-browser firefox
|
2019-09-22 01:32:26 +04:00
|
|
|
--mark-watched
|
|
|
|
'';
|
|
|
|
};
|
2019-09-17 02:20:32 +04:00
|
|
|
}
|