From fca31a2caa26bb457ca93cdeeaa28386eab9aff3 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sat, 19 Aug 2023 23:08:18 +0530 Subject: [PATCH] create databases for dendrite --- hosts/rico1/services/postgresql.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hosts/rico1/services/postgresql.nix b/hosts/rico1/services/postgresql.nix index 4dcf6e6..5e7b96f 100644 --- a/hosts/rico1/services/postgresql.nix +++ b/hosts/rico1/services/postgresql.nix @@ -1,5 +1,14 @@ _: { services.postgresql = { enable = true; + ensureDatabases = ["dendrite"]; + ensureUsers = [ + { + name = "dendrite"; + ensurePermissions = { + "DaTABASE dendrite" = "ALL PRIVILEGES"; + }; + } + ]; }; }