Add paperless to sisko

This commit is contained in:
Andrea Ciceri 2023-12-16 16:52:28 +01:00
parent c7a0a57352
commit 7ab5ee99d6
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
3 changed files with 20 additions and 6 deletions

View file

@ -24,6 +24,7 @@
"invidious"
"searx"
"rock5b-samba"
"paperless"
]
++ [
./disko.nix

View file

@ -0,0 +1,19 @@
{config, ...}: {
networking.firewall.allowedTCPPorts = [config.services.paperless.port]; # TODO remov
services.paperless = {
enable = true;
address = "0.0.0.0";
user = config.ccr.username;
passwordFile = builtins.toFile "paperless-initial-password" "paperless";
mediaDir = "/mnt/hd/paperless/media";
consumptionDir = "/mnt/hd/paperless/consume";
extraConfig = {
PAPERLESS_OCR_LANGUAGE = "ita+eng";
PAPERLESS_CONSUMER_IGNORE_PATTERN = builtins.toJSON [".DS_STORE/*" "desktop.ini"];
PAPERLESS_OCR_USER_ARGS = builtins.toJSON {
optimize = 1;
pdfa_image_compression = "lossless";
};
};
};
}

View file

@ -5,12 +5,6 @@
services.avahi.nssmdns = true;
hardware.sane.enable = true;
services.paperless = {
# work in progress
enable = false;
passwordFile = builtins.toFile "password" "admin";
};
services.printing = {
enable = true;
drivers = [