mirror of
https://github.com/nix-community/home-manager
synced 2024-11-05 10:49:44 +01:00
29 lines
550 B
Nix
29 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/"
|
||
|
}
|
||
|
}
|
||
|
''}
|
||
|
'';
|
||
|
}
|