From 29cf105439dd08c38598199f555e44b5c03f76a4 Mon Sep 17 00:00:00 2001 From: Ari Gerus Date: Mon, 18 Mar 2024 17:17:00 +0100 Subject: [PATCH] nixos/psql: ensurePermissions has been deprecated in favor of ensureDBOwnership --- modules/monitoring.nix | 2 +- nixos/zorigami/default.nix | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/monitoring.nix b/modules/monitoring.nix index b03d838..51604ff 100644 --- a/modules/monitoring.nix +++ b/modules/monitoring.nix @@ -73,7 +73,7 @@ in { services.postgresql.ensureDatabases = [ "grafana" ]; services.postgresql.ensureUsers = [{ name = "grafana"; - ensurePermissions."DATABASE grafana" = "ALL PRIVILEGES"; + ensureDBOwnership = true; }]; services.prometheus.exporters = { diff --git a/nixos/zorigami/default.nix b/nixos/zorigami/default.nix index 8e932fd..aedbdec 100644 --- a/nixos/zorigami/default.nix +++ b/nixos/zorigami/default.nix @@ -197,15 +197,15 @@ services.postgresql.ensureUsers = [ { name = "nextcloud"; - ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES"; + ensureDBOwnership = true; } { name = "matrix-synapse"; - ensurePermissions."DATABASE \"matrix-synapse\"" = "ALL PRIVILEGES"; + ensureDBOwnership = true; } { name = "mastodon"; - ensurePermissions."DATABASE mastodon" = "ALL PRIVILEGES"; + ensureDBOwnership = true; } ];