feat(paperless): install paperless
This commit is contained in:
parent
def10ec06d
commit
808196ebc8
2 changed files with 29 additions and 0 deletions
|
|
@ -13,8 +13,10 @@ in
|
|||
./postgresql.nix
|
||||
|
||||
(import ./sourcehut.nix { inherit base-domain; })
|
||||
|
||||
(import ./docspell.nix { inherit base-domain docspell; })
|
||||
(import ./teedy.nix { inherit base-domain; })
|
||||
(import ./paperless.nix { inherit base-domain; })
|
||||
|
||||
./userprogs.nix
|
||||
];
|
||||
|
|
|
|||
27
paperless.nix
Normal file
27
paperless.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ base-domain, ... }:
|
||||
let
|
||||
fqdn = "paperless.${base-domain}";
|
||||
in
|
||||
{
|
||||
services.paperless = {
|
||||
enable = true;
|
||||
address = fqdn;
|
||||
settings = {
|
||||
PAPERLESS_DBHOST = "/run/postgresql";
|
||||
PAPERLESS_DBNAME = "paperless";
|
||||
PAPERLESS_DBUSER = "paperless";
|
||||
PAPERLESS_DBPASS = "paperless";
|
||||
PAPERLESS_OCR_LANGUAGE = "fra+eng+deu";
|
||||
PAPERLESS_FILENAME_FORMAT = "{created_year}/{correspondent}/{title}";
|
||||
PAPERLESS_OCR_USER_ARGS = {
|
||||
optimize = 1;
|
||||
pdfa_image_compression = "lossless";
|
||||
};
|
||||
PAPERLESS_TIME_ZONE = "Europe/Paris";
|
||||
PAPERLESS_CONSUMER_ENABLE_BARCODES = "true";
|
||||
PAPERLESS_CONSUMER_ENABLE_ASN_BARCODES = "true";
|
||||
PAPERLESS_CONSUMER_BARCODE_SCANNER = "ZXING";
|
||||
PAPERLESS_PORT = "8000";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue