nixos/pretix: increases startup timeout

Migrations on a busy machine can exceed 5 minutes, which I can reproduce
on a busy builder.
This commit is contained in:
Martin Weinelt 2024-08-01 03:05:50 +02:00
parent 63f15b89de
commit 4ba537131f
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -249,7 +249,7 @@ in
};
host = mkOption {
type = with types; nullOr types.path;
type = with types; nullOr path;
default = if cfg.settings.database.backend == "postgresql" then "/run/postgresql" else null;
defaultText = literalExpression ''
if config.services.pretix.settings..database.backend == "postgresql" then "/run/postgresql"
@ -535,7 +535,7 @@ in
fi
'';
serviceConfig = {
TimeoutStartSec = "5min";
TimeoutStartSec = "15min";
ExecStart = "${getExe' pythonEnv "gunicorn"} --bind unix:/run/pretix/pretix.sock ${cfg.gunicorn.extraArgs} pretix.wsgi";
RuntimeDirectory = "pretix";
};