about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2024-01-10 22:46:43 +0900
committerNguyễn Gia Phong <cnx@loang.net>2024-01-10 22:46:43 +0900
commit7503af7dba3ec66152ea230c423cd1a09a8c4158 (patch)
tree278feb6c24226b1b082e62a1242d7ea4ce445c73
parent32c021bbed7707301f73e2d8362002a615502ed6 (diff)
downloadnixos-conf-7503af7dba3ec66152ea230c423cd1a09a8c4158.tar.gz
Adapt to services.postgresql new interface
-rw-r--r--irc.nix2
-rw-r--r--matrix.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/irc.nix b/irc.nix
index 9c5b309..9f69ec3 100644
--- a/irc.nix
+++ b/irc.nix
@@ -57,7 +57,7 @@ in {
       ensureDatabases = [ "soju" ];
       ensureUsers = [ {
         name = "soju";
-        ensurePermissions."DATABASE soju" = "ALL PRIVILEGES";
+        ensureDBOwnership = true;
       } ];
     };
     postgresqlBackup.databases = [ "soju" ];
diff --git a/matrix.nix b/matrix.nix
index b88899f..e5c4147 100644
--- a/matrix.nix
+++ b/matrix.nix
@@ -121,7 +121,7 @@ in {
       ensureDatabases = [ "dendrite" ];
       ensureUsers = [ {
         name = "dendrite";
-        ensurePermissions."DATABASE dendrite" = "ALL PRIVILEGES";
+        ensureDBOwnership = true;
       } ];
     };
     postgresqlBackup.databases = [ "dendrite" ];