nixos/outline: fix crash at startup from "Failed to parse" on database URL (#536063)

This commit is contained in:
Cabia Rangris
2026-06-28 08:48:41 +00:00
committed by GitHub
2 changed files with 9 additions and 6 deletions
+8 -2
View File
@@ -836,12 +836,18 @@ in
${
if (cfg.databaseUrl == "local") then
''
export DATABASE_URL="''${DATABASE_URL:-${lib.escapeShellArg localPostgresqlUrl}}"
if [ -z "''${DATABASE_URL:-}" ]; then
DATABASE_URL=${lib.escapeShellArg localPostgresqlUrl}
fi
export DATABASE_URL
export PGSSLMODE="''${PGSSLMODE:-disable}"
''
else
''
export DATABASE_URL="''${DATABASE_URL:-${lib.escapeShellArg cfg.databaseUrl}}"
if [ -z "''${DATABASE_URL:-}" ]; then
DATABASE_URL=${lib.escapeShellArg cfg.databaseUrl}
fi
export DATABASE_URL
''
}
+1 -4
View File
@@ -7,10 +7,7 @@
xanderio
];
node.pkgsReadOnly = false;
nodes.outline = {
virtualisation.memorySize = 2 * 1024;
containers.outline = {
services.outline = {
enable = true;
forceHttps = false;