23 lines
582 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";
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
2019-09-17 16:48:19 +04:00
"bestvideo+bestaudio/best";
2019-09-17 23:07:22 +04:00
};
2019-09-17 02:20:32 +04:00
};
home-manager.users.alukard.home.file.".config/youtube-dl/config" = {
text = ''
--cookie=/home/alukard/.config/yt-cookie
--mark-watched
'';
};
2019-09-17 02:20:32 +04:00
}