From d6bfb4c175076747c0531352380117cf33633a5a Mon Sep 17 00:00:00 2001 From: Alexander Kobjolke Date: Mon, 4 Mar 2024 15:40:55 +0100 Subject: [PATCH 1/2] thrall: Share paperless consumption directory via syncthing --- hosts/thrall/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/thrall/default.nix b/hosts/thrall/default.nix index 553aa9f..9839dd4 100644 --- a/hosts/thrall/default.nix +++ b/hosts/thrall/default.nix @@ -346,6 +346,10 @@ in { path = "/home/alex/media/scan"; devices = [ "redmi" ]; }; + "paperless" = { + path = "${config.services.paperless.consumptionDir}"; + devices = [ "redmi" ]; + }; }; devices = { "redmi" = { From f6aab82ba098a9ef8ab2af22e8005dccd860cc67 Mon Sep 17 00:00:00 2001 From: Alexander Kobjolke Date: Mon, 4 Mar 2024 15:41:44 +0100 Subject: [PATCH 2/2] thrall: Consume paperless recursively --- hosts/thrall/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hosts/thrall/default.nix b/hosts/thrall/default.nix index 9839dd4..b55c64c 100644 --- a/hosts/thrall/default.nix +++ b/hosts/thrall/default.nix @@ -294,6 +294,8 @@ in { extraConfig = { PAPERLESS_OCR_LANGUAGE = "deu+eng"; PAPERLESS_URL = "https://docs.failco.de"; + PAPERLESS_CONSUMER_RECURSIVE = true; + PAPERLESS_CONSUMER_SUBDIRS_AS_TAGS = true; }; };