From 8fbdc734789475138da7bdd63e36cdfc71352825 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 11 Oct 2023 13:06:41 +0800 Subject: [PATCH] hosts/plover: update Grafana settings --- hosts/plover/modules/services/grafana.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hosts/plover/modules/services/grafana.nix b/hosts/plover/modules/services/grafana.nix index 95debefa..39a2386d 100644 --- a/hosts/plover/modules/services/grafana.nix +++ b/hosts/plover/modules/services/grafana.nix @@ -33,11 +33,12 @@ in token_url = authSubpath "oauth2/token"; }; - database = { + database = rec { host = "127.0.0.1:${builtins.toString config.services.postgresql.port}"; password = "$_file{${config.sops.secrets."grafana/database/password".path}}"; type = "postgres"; - user = config.services.grafana.database.name; + name = "grafana"; + user = name; }; log = {