1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-19 00:09:48 +01:00
home-manager/tests/modules/programs/gallery-dl/gallery-dl.nix
Mario Rodas f9f4c8e1e7
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
2022-09-09 11:56:37 +02:00

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/"
}
}
''}
'';
}