From 0790a027a9e66eacdf9126e719692e2b5a36bb27 Mon Sep 17 00:00:00 2001 From: Sizhe Zhao Date: Sun, 27 Sep 2026 01:38:49 +0800 Subject: [PATCH] nixosTests.pocket-id: fix postgresql test Assisted-by: Pi coding agent (gpt-5.6-sol) --- nixos/tests/pocket-id.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/tests/pocket-id.nix b/nixos/tests/pocket-id.nix index d79866882c17..5acbd9e5575d 100644 --- a/nixos/tests/pocket-id.nix +++ b/nixos/tests/pocket-id.nix @@ -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 = [