1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-05 01:19:46 +01:00
home-manager/tests/modules/programs/gallery-dl/gallery-dl.nix

29 lines
550 B
Nix
Raw Normal View History

{ ... }:
{
programs.gallery-dl = {
enable = true;
settings = {
cache.file = "~/gallery-dl/cache.sqlite3";
extractor.base-directory = "~/gallery-dl/";
};
};
test.stubs.gallery-dl = { };
nmt.script = ''
assertFileContent home-files/.config/gallery-dl/config.json \
${builtins.toFile "gallery-dl-expected-settings.json" ''
{
"cache": {
"file": "~/gallery-dl/cache.sqlite3"
},
"extractor": {
"base-directory": "~/gallery-dl/"
}
}
''}
'';
}