1 { pkgs, lib, config, ... }:
6 home.packages = [ pkgs.yt-dlp ];
7 xdg.configFile."yt-dlp/config".text = ''
8 --download-archive .downloaded
9 --format ${lib.concatStringsSep "/" [
10 "bestvideo[height=360][ext=mp4]+bestaudio"
11 "bestvideo[height<=480][ext=mp4]+bestaudio"
12 "best[height=360][ext=mp4]"
13 "best[height<=480][ext=mp4]"
18 --output %(upload_date>%Y-%m-%d)s - %(title)s.%(id)s.%(format_id)s.%(ext)s