From 4dfed8c6234e5091b2e596b056f4b883c87b4fed Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Mon, 18 Mar 2024 21:00:48 +0100 Subject: [PATCH] update paperless --- nixos/machines/chungus/paperless.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nixos/machines/chungus/paperless.nix b/nixos/machines/chungus/paperless.nix index 87ec104..85cfed6 100644 --- a/nixos/machines/chungus/paperless.nix +++ b/nixos/machines/chungus/paperless.nix @@ -1,8 +1,15 @@ -{ config, ... }: { +{ config, pkgs, nixos-artwork, ... }: { services.paperless = { enable = true; address = "0.0.0.0"; + package = pkgs.unstable.paperless; + extraConfig = { + PAPERLESS_OCR_LANGUAGE = "deu+eng"; + PAPERLESS_APP_TITLE = "paperless.chungus.private"; + PAPERLESS_CONSUMER_IGNORE_PATTERN = builtins.toJSON [ ".DS_STORE/*" "desktop.ini" ]; + #PAPERLESS_CONSUMER_DELETE_DUPLICATES = true; + }; }; networking.firewall.interfaces.wg0.allowedTCPPorts = [ config.services.paperless.port ];