fork/home-manager

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

Dany Marcouxyt-dlp: generate config if settings or extraConfig are defined (#4018)d1f04b0f

master
345 B19 linesraw
1{ ... }:
2
3{
4  programs.yt-dlp = {
5    enable = true;
6    extraConfig = ''
7      --config-locations /home/user/.yt-dlp.conf
8    '';
9  };
10
11  test.stubs.yt-dlp = { };
12
13  nmt.script = ''
14    assertFileExists home-files/.config/yt-dlp/config
15    assertFileContent home-files/.config/yt-dlp/config ${
16      ./yt-dlp-extraConfig-expected
17    }
18  '';
19}