diff --git a/integration-tests/basic/default.nix b/integration-tests/basic/default.nix index ac26d52..7e29e77 100644 --- a/integration-tests/basic/default.nix +++ b/integration-tests/basic/default.nix @@ -49,9 +49,6 @@ let ensureUsers = [ { name = "atticd"; - ensurePermissions = { - "DATABASE attic" = "ALL PRIVILEGES"; - }; } # For testing only - Don't actually do this @@ -64,6 +61,10 @@ let ]; }; + systemd.services.postgresql.postStart = lib.mkAfter '' + $PSQL -tAc 'ALTER DATABASE "attic" OWNER TO "atticd"' + ''; + services.atticd.settings = { database.url = "postgresql:///attic?host=/run/postgresql"; };