update paperless

This commit is contained in:
Ingolf Wagner 2024-03-18 21:00:48 +01:00
parent 385b3d4a37
commit 4dfed8c623
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -1,8 +1,15 @@
{ config, ... }: { { config, pkgs, nixos-artwork, ... }: {
services.paperless = { services.paperless = {
enable = true; enable = true;
address = "0.0.0.0"; 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 ]; networking.firewall.interfaces.wg0.allowedTCPPorts = [ config.services.paperless.port ];