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; } ];