From b5efaa433c1c6f53413b0443a18c1aea95bd2215 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Thu, 1 Dec 2022 08:46:14 -0500 Subject: Update nixos --- modules/monitoring.nix | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'modules/monitoring.nix') diff --git a/modules/monitoring.nix b/modules/monitoring.nix index 65e292d..fd7fa59 100644 --- a/modules/monitoring.nix +++ b/modules/monitoring.nix @@ -46,19 +46,21 @@ in config = lib.mkIf cfg.enable { services.grafana = { enable = true; - domain = cfg.grafana-domain; - port = cfg.grafana-port; - addr = "127.0.0.1"; - rootUrl = "https://grafana.orbekk.com/"; - smtp = lib.mkIf config.orbekk.postfix.enable { - enable = true; - host = "localhost:25"; - fromAddress = "root@orbekk.com"; + settings = { + smtp = lib.mkIf config.orbekk.postfix.enable { + enable = true; + host = "localhost:25"; + fromAddress = "root@orbekk.com"; + }; + server.root_url = "https://grafana.orbekk.com/"; + server.domain = cfg.grafana-domain; + server.http_port = cfg.grafana-port; + server.http_addr = "127.0.0.1"; }; provision = { enable = true; - datasources = [ + datasources.settings.datasources = [ { name = "Prometheus"; type = "prometheus"; -- cgit v1.2.3