mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
f9f4c8e1e7
gallery-dl [1] is a cli to download image galleries from several image hosting sites. [1] https://github.com/mikf/gallery-dl
28 lines
550 B
Nix
28 lines
550 B
Nix
{ ... }:
|
|
|
|
{
|
|
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/"
|
|
}
|
|
}
|
|
''}
|
|
'';
|
|
}
|