mirror of
https://github.com/nix-community/home-manager
synced 2024-09-12 06:16:33 +02:00
31 lines
608 B
Nix
31 lines
608 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
programs.gallery-dl = {
|
|
enable = true;
|
|
|
|
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/"
|
|
}
|
|
}
|
|
''}
|
|
'';
|
|
}
|