mirror of
https://github.com/Noratrieb/vps.git
synced 2026-07-12 08:17:45 +02:00
paperless
This commit is contained in:
parent
1df84d34b6
commit
975fb518ef
39 changed files with 158 additions and 108 deletions
24
nix/modules/paperless/default.nix
Normal file
24
nix/modules/paperless/default.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ config, ... }:
|
||||
let nasDir = "/mnt/nas/HEY/_Nora/paperless"; in {
|
||||
age.secrets.paperless_env.file = ../../secrets/paperless_env.age;
|
||||
|
||||
services.paperless = {
|
||||
enable = true;
|
||||
consumptionDir = "${nasDir}/consume";
|
||||
address = "0.0.0.0";
|
||||
port = 8010;
|
||||
environmentFile = config.age.secrets.paperless_env.path;
|
||||
settings = {
|
||||
PAPERLESS_TIME_ZONE = "Europe/Zurich";
|
||||
PAPERLESS_ADMIN_USER = "nora";
|
||||
PAPERLESS_OCR_LANGUAGE = "deu+eng";
|
||||
};
|
||||
exporter = {
|
||||
enable = true;
|
||||
directory = "${nasDir}/export_minipc";
|
||||
onCalendar = "02:25:00";
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 8010 ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue