24 lines
675 B
Nix
Raw Normal View History

2024-02-08 23:21:10 +03:00
{ ... }: let
2023-12-30 04:34:49 +03:00
nas-path = "/media/nas/media-stack";
in {
virtualisation.oci-containers.containers.spdf = {
autoStart = true;
2024-07-07 17:04:42 +03:00
image = "docker.io/frooodle/s-pdf:0.26.1-fat";
2023-12-30 04:34:49 +03:00
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 -"
];
}