about summary refs log tree commit diff
path: root/modules/services
diff options
context:
space:
mode:
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/matrix-bridge.nix6
-rw-r--r--modules/services/vikunja.nix2
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/services/matrix-bridge.nix b/modules/services/matrix-bridge.nix
index bacd26d..3422a76 100644
--- a/modules/services/matrix-bridge.nix
+++ b/modules/services/matrix-bridge.nix
@@ -192,15 +192,15 @@ in
     services.postgresql.ensureUsers = [
       {
         name = "mautrix-telegram";
-        ensurePermissions."DATABASE \"mautrix-telegram\"" = "ALL PRIVILEGES";
+        ensureDBOwnership = true;
       }
       {
         name = "mautrix-signal";
-        ensurePermissions."DATABASE \"mautrix-signal\"" = "ALL PRIVILEGES";
+        ensureDBOwnership = true;
       }
       {
         name = "mautrix-whatsapp";
-        ensurePermissions."DATABASE \"mautrix-whatsapp\"" = "ALL PRIVILEGES";
+        ensureDBOwnership = true;
       }
     ];
 
diff --git a/modules/services/vikunja.nix b/modules/services/vikunja.nix
index eb5adbc..61e37c2 100644
--- a/modules/services/vikunja.nix
+++ b/modules/services/vikunja.nix
@@ -34,7 +34,7 @@ in
     services.postgresql.ensureUsers = [
       {
         name = "vikunja";
-        ensurePermissions."DATABASE vikunja" = "ALL PRIVILEGES";
+        ensureDBOwnership = true;
       }
     ];