Add yt-dlp

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-08-09 13:18:59 +03:00
parent 22e0150a65
commit 97a7256967
9 changed files with 72 additions and 20 deletions

View File

@@ -0,0 +1,20 @@
{
user ? throw "user argument is required",
home ? throw "home argument is required",
}:
{ config, ... }:
{
home-manager.users.${user}.programs.yt-dlp = {
enable = true;
settings = {
live-from-start = true;
concurrent-fragments = config.hardware.cpu.threads;
lazy-playlist = true;
cookies-from-browser = "firefox";
embed-subs = true;
sub-langs = "all,-live_chat";
embed-thumbnail = true;
fixup = "detect_or_warn";
};
};
}