enable tika and gotenberg on paperless-ngx

This commit is contained in:
Ingolf Wagner 2024-11-23 18:22:01 +07:00
parent 6b4d8b2e71
commit be6b1fbfa4
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 38 additions and 1 deletions

View file

@ -46,9 +46,10 @@
./service-atuin.nix
./service-forgejo.nix
./service-paperless.nix
./service-paperless-backup.nix
./service-paperless-healthchecks.nix
./service-paperless-tika.nix
./service-paperless.nix
./service-s3.nix
#./service-taskwarrior.nix
./service-vault.nix

View file

@ -0,0 +1,36 @@
{
config,
pkgs,
lib,
...
}:
{
services.paperless = {
settings = {
PAPERLESS_TIKA_ENABLED = true;
PAPERLESS_TIKA_ENDPOINT = "http://127.0.0.1:${toString config.services.tika.port}";
PAPERLESS_TIKA_GOTENBERG_ENDPOINT = "http://127.0.0.1:${toString config.services.gotenberg.port}";
};
};
services.tika = {
enable = true;
};
services.gotenberg = {
enable = true;
timeout = "300s";
port = 3214;
};
systemd.services.gotenberg = {
environment.HOME = "/run/gotenberg";
serviceConfig = {
SystemCallFilter = lib.mkAfter [ "@chown" ]; # TODO remove when fixed (https://github.com/NixOS/nixpkgs/issues/349123)
WorkingDirectory = "/run/gotenberg";
RuntimeDirectory = "gotenberg";
};
};
}