# modules/home/gallery-dl.nix — Command-line program to download image-galleries and -collections from several image hosting sites. # # Started by nixmod on 2026-10-11 (template: program). # From home-manager's programs.gallery-dl (3 options, as pinned in flake.lock). Everything # is commented out except `enable`: uncomment what you want. Option docs: # nixmod doc programs.gallery-dl --home # Package: pkgs.gallery-dl 1.32.14 — https://codeberg.org/mikf/gallery-dl # TODO: say here why this is on the machine and anything non-obvious. { ... }: let theme = import ../_palette.nix; in # the system colours: theme.palette.gold, theme.name … { flake.homeModules.gallery-dl = { config, lib, pkgs, ... }: let # Values used more than once below. cfg = config.programs.gallery-dl; # colours = theme.palette; # base surface text gold pine foam love rose iris … in { programs.gallery-dl = { enable = true; settings = { extractor = { base-directory = "~/Downloads/gallery-dl/"; }; }; }; # ── around it ─────────────────────────────────────────────────────────── # Packages next to it (CLI helpers, plugins, fonts): # home.packages = with pkgs; [ ]; # # A config file the module does not cover, in ~/.config: # xdg.configFile."gallery-dl/config".text = '' # ''; # # Environment for your session: # home.sessionVariables = { EXAMPLE = "1"; }; # # Default app for a MIME type: # xdg.mimeApps.defaultApplications."text/html" = [ "gallery-dl.desktop" ]; # # A secret (laptop only; sops is not on the generic host): # sops.secrets."gallery-dl-token" = { }; # path: config.sops.secrets."gallery-dl-token".path }; }