about summary refs log tree commit diff
diff options
context:
space:
mode:
-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" ];