cli/yt-dlp: use a list of args for extraConfig
This commit is contained in:
parent
7cd3d6ea35
commit
202de6511f
1 changed files with 12 additions and 12 deletions
|
|
@ -16,24 +16,24 @@ in
|
||||||
package = lib.mkPackageOption pkgs name { };
|
package = lib.mkPackageOption pkgs name { };
|
||||||
|
|
||||||
extraConfig = lib.mkOption {
|
extraConfig = lib.mkOption {
|
||||||
type = lib.types.lines;
|
type = lib.types.listOf lib.types.str;
|
||||||
default = ''
|
description = "List of commandline arguments";
|
||||||
--no-write-auto-subs
|
default = [
|
||||||
--sub-langs all,-live_chat
|
"--no-write-auto-subs"
|
||||||
|
"--sub-langs=all,-live_chat"
|
||||||
|
|
||||||
--embed-subs
|
"--embed-subs"
|
||||||
--embed-metadata
|
"--embed-metadata"
|
||||||
--embed-chapters
|
"--embed-chapters"
|
||||||
|
"--sponsorblock-mark=all"
|
||||||
|
|
||||||
--sponsorblock-mark all
|
"--paths=temp:/tmp"
|
||||||
|
];
|
||||||
--paths temp:/tmp
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
environment.systemPackages = [ cfg.package ];
|
environment.systemPackages = [ cfg.package ];
|
||||||
environment.etc."${name}.conf".text = cfg.extraConfig;
|
environment.etc."${name}.conf".text = builtins.concatStringsSep "\n" cfg.extraConfig;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue