diff --git a/systems/palatine-hill/postgresql.nix b/systems/palatine-hill/postgresql.nix index a8d616b..cc6bb58 100644 --- a/systems/palatine-hill/postgresql.nix +++ b/systems/palatine-hill/postgresql.nix @@ -28,12 +28,26 @@ in ''; # initialScript = config.sops.secrets."postgres/init".path; - ensureDatabases = [ "atticd" ]; + ensureDatabases = [ + "atticd" + "alice" + ]; ensureUsers = [ { name = "atticd"; ensureDBOwnership = true; } + { + name = "alice"; + ensureDBOwnership = true; + ensureClauses = { + superuser = true; + login = true; + createrole = true; + createdb = true; + replication = true; + }; + } ]; refreshCollation = true; @@ -48,6 +62,7 @@ in "hydra-send-stats" "hydra-server" "atticd" + "gitea" ]; }; };