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 = [