mirror of
https://github.com/nix-community/home-manager
synced 2024-11-16 16:19:44 +01:00
d1f04b0f36
Previously, the config was generated only if settings were defined. In a case where settings weren't defined, extraConfig was ignored.
19 lines
345 B
Nix
19 lines
345 B
Nix
{ ... }:
|
|
|
|
{
|
|
programs.yt-dlp = {
|
|
enable = true;
|
|
extraConfig = ''
|
|
--config-locations /home/user/.yt-dlp.conf
|
|
'';
|
|
};
|
|
|
|
test.stubs.yt-dlp = { };
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/yt-dlp/config
|
|
assertFileContent home-files/.config/yt-dlp/config ${
|
|
./yt-dlp-extraConfig-expected
|
|
}
|
|
'';
|
|
}
|