gallery-dl: add module

gallery-dl [1] is a cli to download image galleries from several image
hosting sites.

[1] https://github.com/mikf/gallery-dl
This commit is contained in:
Mario Rodas 2022-07-09 04:20:00 +00:00 committed by Robert Helgesson
parent 4cfc0a1e02
commit f9f4c8e1e7
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
7 changed files with 82 additions and 0 deletions

View file

@ -0,0 +1 @@
{ gallery-dl = ./gallery-dl.nix; }

View file

@ -0,0 +1,28 @@
{ ... }:
{
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/"
}
}
''}
'';
}