1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-18 09:09:45 +01:00
home-manager/tests/modules/programs/gallery-dl/gallery-dl.nix

31 lines
608 B
Nix
Raw Normal View History

2024-03-06 18:43:55 +01:00
{ config, ... }:
{
programs.gallery-dl = {
enable = true;
2024-03-06 18:43:55 +01:00
package = config.lib.test.mkStubPackage { };
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/"
}
}
''}
'';
}