diff --git a/modules/monitoring.nix b/modules/monitoring.nix index 853a5a8..ec48f8b 100644 --- a/modules/monitoring.nix +++ b/modules/monitoring.nix @@ -36,21 +36,12 @@ in }; config = lib.mkIf cfg.enable { - services.postgresql = { - enable = true; - ensureDatabases = [ "grafana" ]; - ensureUsers = [ - { - name = "grafana"; - ensurePermissions = { - "DATABASE grafana" = "ALL PRIVILEGES"; - }; - ensureClauses = { - "login" = true; - }; - } - ]; - }; + shb.postgresql.passwords = [ + { + username = "grafana"; + database = "grafana"; + } + ]; services.grafana = { enable = true;