21 lines
490 B
Nix
21 lines
490 B
Nix
{
|
|
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";
|
|
};
|
|
};
|
|
}
|