From 7ed141d52eb36c6db004c295a37b6830b1e7c73c Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Wed, 24 Apr 2024 15:11:52 +0200 Subject: [PATCH] postgresql: Create roles --- machines/neo/postgresql/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/machines/neo/postgresql/default.nix b/machines/neo/postgresql/default.nix index 8e4c830..164b938 100644 --- a/machines/neo/postgresql/default.nix +++ b/machines/neo/postgresql/default.nix @@ -13,6 +13,17 @@ "dendrite" "matrix-sliding-sync" ]; + + ensureUsers = [ + { + name = "dendrite"; + ensureDBOwnership = true; + } + { + name = "matrix-sliding-sync"; + ensureDBOwnership = true; + } + ]; }; postgresqlBackup = {