diff --git a/services/matrix.nix b/services/matrix.nix index 92a7b5c..3e8f00e 100644 --- a/services/matrix.nix +++ b/services/matrix.nix @@ -58,7 +58,7 @@ in { ensureUsers = [ { name = "matrix-synapse"; - ensurePermissions."DATABASE \"matrix-synapse\"" = "ALL PRIVILEGES"; + ensureDBOwnership = true; } ]; }; diff --git a/services/nextcloud.nix b/services/nextcloud.nix index 756c145..39e39c7 100644 --- a/services/nextcloud.nix +++ b/services/nextcloud.nix @@ -42,9 +42,7 @@ in { ensureUsers = [ { name = "nextcloud"; - ensurePermissions = { - "DATABASE ${dbName}" = "ALL PRIVILEGES"; - }; + ensureDBOwnership = true; } ]; }; diff --git a/services/paperless.nix b/services/paperless.nix index f2ecf66..92bd8e4 100644 --- a/services/paperless.nix +++ b/services/paperless.nix @@ -92,7 +92,7 @@ in { ensureUsers = [ { name = "paperless"; - ensurePermissions."DATABASE paperless" = "ALL PRIVILEGES"; + ensureDBOwnership = true; } ]; }; diff --git a/services/vaultwarden.nix b/services/vaultwarden.nix index 14e4a16..17cede7 100644 --- a/services/vaultwarden.nix +++ b/services/vaultwarden.nix @@ -46,9 +46,7 @@ in { ensureUsers = [ { name = "vaultwarden"; - ensurePermissions = { - "DATABASE vaultwarden" = "ALL PRIVILEGES"; - }; + ensureDBOwnership = true; } ]; };