Commit 1e68f3c02f14

Vincent Demeester <vincent@sbr.pm>
2026-02-23 06:25:19
feat(aion): adopt denote file-naming scheme for paperless
Switched paperless filename format to follow denote conventions: correspondent as signature (==), title with hyphens (--), and document type merged with tags as keywords (__). Organized by year for manageable directory sizes.
1 parent 8908668
Changed files (1)
systems
systems/aion/extra.nix
@@ -118,7 +118,7 @@ in
       settings = {
         PAPERLESS_URL = "https://paperless.sbr.pm";
         PAPERLESS_EMPTY_TRASH_DIR = "/neo/paperless/trash";
-        PAPERLESS_FILENAME_FORMAT = "{{ created_year }}/{{ document_type }}/{{ created }} - {{ correspondent }} - {{ title }} - {{ asn }} ({{ doc_pk }})";
+        PAPERLESS_FILENAME_FORMAT = "{{ created_year }}/{{ created | datetime('%Y%m%dT%H%M%S') }}{% if correspondent != 'none' %}=={{ correspondent | slugify | replace('-', '=') }}{% endif %}--{{ title | slugify }}{% if document_type != 'none' or tag_name_list %}__{% if document_type != 'none' %}{{ document_type | slugify | replace('-', '') }}{% endif %}{% if document_type != 'none' and tag_name_list %}_{% endif %}{% if tag_name_list %}{{ tag_name_list | join('_') }}{% endif %}{% endif %}";
         PAPERLESS_FILENAME_FORMAT_REMOVE_NONE = "true";
       };
     };