From 963a189bcbaa93177df7c6bf21d6b4730d4b7a63 Mon Sep 17 00:00:00 2001 From: daragh Date: Thu, 23 May 2024 04:34:19 +0100 Subject: [PATCH] Removed provision config away from kitt --- applications/grafana.nix | 4 ++-- machines/kitt.nix | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/applications/grafana.nix b/applications/grafana.nix index 4e42f81..be8e948 100644 --- a/applications/grafana.nix +++ b/applications/grafana.nix @@ -66,9 +66,9 @@ in { enable = true; datasources.settings.datasources = [ { - name = cfg.datasource.name; + name = "Prometheus"; type = "prometheus"; - url = cfg.datasource.url; + url = "http://localhost:${toString config.services.skynet.prometheus.server.port}"; isDefault = true; editable = true; } diff --git a/machines/kitt.nix b/machines/kitt.nix index 6d8eca5..f036fe0 100644 --- a/machines/kitt.nix +++ b/machines/kitt.nix @@ -97,11 +97,5 @@ in { ip = ip_pub; name = name; }; - - # maybe just do provision config directly ? - datasource = { - name = "Prometheus"; - url = "http://localhost:${toString config.services.skynet.prometheus.server.port}"; - }; }; }