{ config, ... }: { config = { services.paperless = { enable = true; address = "[2a03:4000:52:ada:4:1::]"; passwordFile = config.sops.secrets."paperless-rootpw".path; settings = { PAPERLESS_OCR_LANGUAGE = "deu+eng"; PAPERLESS_URL = "https://paperless.yggdrasil.li"; PAPERLESS_FILENAME_FORMAT = "{{ created_year }}/{{ document_type }}/{{ correspondent }}/{{ created }}_{{ doc_pk }}_{{ title }}"; PAPERLESS_FILENAME_FORMAT_REMOVE_NONE = "true"; PAPERLESS_TASK_WORKERS = "3"; PAPERLESS_THREADS_PER_WORKER = "4"; }; database.createLocally = true; }; sops.secrets."paperless-rootpw" = { format = "binary"; sopsFile = ./rootpw; }; }; }