Add paperless
to sisko
This commit is contained in:
parent
c7a0a57352
commit
7ab5ee99d6
3 changed files with 20 additions and 6 deletions
|
@ -24,6 +24,7 @@
|
|||
"invidious"
|
||||
"searx"
|
||||
"rock5b-samba"
|
||||
"paperless"
|
||||
]
|
||||
++ [
|
||||
./disko.nix
|
||||
|
|
19
modules/paperless/default.nix
Normal file
19
modules/paperless/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Reference in a new issue