2024-02-08 23:30:40 +03:00

24 lines
671 B
Nix

{ ... }: let
nas-path = "/media/nas/media-stack";
in {
virtualisation.oci-containers.containers.spdf = {
autoStart = true;
image = "docker.io/frooodle/s-pdf:0.17.2";
environment = {
PUID = "1000";
PGID = "100";
UMASK = "022";
SECURITY_ENABLE_LOGIN = "false";
SECURITY_CSRF_DISABLED = "false";
SYSTEM_DEFAULT_LOCALE = "ru-RU";
METRICS_ENABLED = "false";
};
ports = [ "127.0.0.1:8071:8080/tcp" ];
volumes = [ "${nas-path}/configs/spdf/configs:/configs" ];
};
systemd.tmpfiles.rules = [
"d ${nas-path}/configs/spdf 0755 1000 100 -"
"d ${nas-path}/configs/spdf/configs 0755 1000 100 -"
];
}