diff --git a/cli/yt-dlp.nix b/cli/yt-dlp.nix index f5e695b..f998787 100644 --- a/cli/yt-dlp.nix +++ b/cli/yt-dlp.nix @@ -16,24 +16,24 @@ in package = lib.mkPackageOption pkgs name { }; extraConfig = lib.mkOption { - type = lib.types.lines; - default = '' - --no-write-auto-subs - --sub-langs all,-live_chat + type = lib.types.listOf lib.types.str; + description = "List of commandline arguments"; + default = [ + "--no-write-auto-subs" + "--sub-langs=all,-live_chat" - --embed-subs - --embed-metadata - --embed-chapters + "--embed-subs" + "--embed-metadata" + "--embed-chapters" + "--sponsorblock-mark=all" - --sponsorblock-mark all - - --paths temp:/tmp - ''; + "--paths=temp:/tmp" + ]; }; }; config = lib.mkIf cfg.enable { environment.systemPackages = [ cfg.package ]; - environment.etc."${name}.conf".text = cfg.extraConfig; + environment.etc."${name}.conf".text = builtins.concatStringsSep "\n" cfg.extraConfig; }; }