fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Loïc Reynieryt-dlp: add `settings` optionf5e4614c

master
560 B27 linesraw
1{ ... }:
2
3{
4  programs.yt-dlp = {
5    enable = true;
6    settings = {
7      embed-thumbnail = true;
8      embed-subs = false;
9      sub-langs = "all";
10      downloader = "aria2c";
11      downloader-args = "aria2c:'-c -x8 -s8 -k1M'";
12      trim-filenames = 30;
13    };
14    extraConfig = ''
15      --config-locations /home/user/.yt-dlp.conf
16    '';
17  };
18
19  test.stubs.yt-dlp = { };
20
21  nmt.script = ''
22    assertFileExists home-files/.config/yt-dlp/config
23    assertFileContent home-files/.config/yt-dlp/config ${
24      ./yt-dlp-simple-config-expected
25    }
26  '';
27}