aboutsummaryrefslogtreecommitdiff
path: root/modules/retired/stirling-pdf/default.nix
blob: 904fd6dbe59023719c11fab6e8374bb82c0858ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ ... }:
let
  directories = [
    "/opt/stirling"
  ];
in
{
  systemd.tmpfiles.rules = map (x: "d ${x} 0755 share share - -") directories;
  virtualisation.oci-containers.containers.pdf-tools = {
    image = "frooodle/s-pdf:latest";
    autoStart = true;
    ports = [
      "8060:8080"
    ];
    volumes = [
      "/opt/stirling/training-data:/usr/share/tesseract-ocr/4.00/tessdata"
      "/opt/stirling/configs:/configs"
    ];
    environment = {
      DOCKER_ENABLE_SECURITY = "false";
    };
  };
}