nixosTests.pocket-id: fix postgresql test

Assisted-by: Pi coding agent (gpt-5.6-sol)
This commit is contained in:
Sizhe Zhao
2026-09-27 01:38:49 +08:00
parent 7ad9c2f7c2
commit 0790a027a9

View File

@@ -36,13 +36,18 @@ in
enable = true;
settings = {
PORT = 10001;
DB_CONNECTION_STRING = "host=/run/postgresql user=${username} database=${username}";
DB_CONNECTION_STRING = "postgresql:///${username}?host=/run/postgresql";
};
credentials = {
inherit ENCRYPTION_KEY;
};
};
systemd.services.pocket-id = {
after = [ "postgresql.target" ];
requires = [ "postgresql.target" ];
};
services.postgresql = {
enable = true;
ensureUsers = [