🔧 make paperless oci-container rootless

This commit is contained in:
Ingolf Wagner 2025-05-01 02:51:23 +02:00
parent f58d688ad9
commit d5d28b701d
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -14,16 +14,30 @@
};
};
# to make podman run rootless as paperless user
users.users.paperless.autoSubUidGidRange = true;
imports = [
{
virtualisation.oci-containers.backend = "podman";
}
# tika
{
services.tika.port = 9998;
virtualisation.oci-containers = {
backend = "podman";
containers.tika = {
image = "apache/tika:latest"; # Warning: if the tag does not change, the image will not be updated
ports = [ "127.0.0.1:${toString config.services.tika.port}:9998" ];
podman = {
user = "paperless";
};
};
};
}
# gotenberg
{
services.gotenberg.port = 3214;
virtualisation.oci-containers = {
@ -35,6 +49,9 @@
"--chromium-disable-javascript=true"
"--chromium-allow-list=file:///tmp/.*"
];
podman = {
user = "paperless";
};
};
};
}