From b5d849c844446a72298fdc784d22412a351497a9 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Mon, 7 Apr 2025 15:44:42 -0400 Subject: [PATCH] add alice to postgres --- systems/palatine-hill/postgresql.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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" ]; }; }; -- 2.48.1