From f2ebda369ad3244352a66310be9c6495aeeb5396 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Sat, 16 Mar 2024 23:06:01 +0100 Subject: [PATCH] grafana: Add plugins, disable HTML sanitization --- machines/saga/grafana/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/machines/saga/grafana/default.nix b/machines/saga/grafana/default.nix index b901deb..aefc30e 100644 --- a/machines/saga/grafana/default.nix +++ b/machines/saga/grafana/default.nix @@ -1,17 +1,28 @@ -{ config, ... }: +{ pkgs, config, ... }: { services.grafana = { enable = true; + declarativePlugins = with pkgs.grafanaPlugins; [ + grafana-piechart-panel + grafana-polystat-panel + grafana-clock-panel + ]; settings = { log = { level = "info"; }; + + panels = { + disable_sanitize_html = true; + }; + server = { domain = "saga.datarift.nl"; enforce_domain = true; http_addr = "0.0.0.0"; root_url = "https://saga.datarift.nl"; }; + "auth.generic_oauth" = { enabled = true; name = "Keycloak";