aboutsummaryrefslogtreecommitdiff
path: root/share/cfg/gallery-dl.nix
diff options
context:
space:
mode:
Diffstat (limited to 'share/cfg/gallery-dl.nix')
-rw-r--r--share/cfg/gallery-dl.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/share/cfg/gallery-dl.nix b/share/cfg/gallery-dl.nix
new file mode 100644
index 0000000..320061b
--- /dev/null
+++ b/share/cfg/gallery-dl.nix
@@ -0,0 +1,31 @@
+{ config, ... }: {
+ programs.gallery-dl = {
+ settings.extractor = {
+ base-directory = "${config.xdg.userDirs.download}/gallery-dl";
+
+ postprocessors = [
+ {
+ name = "metadata";
+ mode = "json";
+ whitelist = [
+ "danbooru"
+ "moebooru"
+ "gelbooru"
+ "sankaku"
+ "nhentai"
+ "rule34"
+ ];
+ }
+ {
+ name = "zip";
+ compression = "store";
+ extension = "cbz";
+ filter = "extension not in ('zip', 'rar')";
+ whitelist = [ "nhentai" "mangadex" ];
+ }
+ ];
+
+ Danbooru.metadata = true;
+ }; # End of settings.extractor
+ }; # End of programs.gallery-dl
+}