25 lines
651 B
Nix
Raw Normal View History

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" = {
text = ''
2022-04-22 02:14:31 +03:00
--cookies-from-browser firefox
--mark-watched
'';
};
2019-09-17 02:20:32 +04:00
}