From e31d0874319921c15062a934b71139feba0b3131 Mon Sep 17 00:00:00 2001 From: Daniel Frank Date: Fri, 28 Jan 2022 21:40:36 +0100 Subject: [PATCH] Use correct option names for grafana --- grafana.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/grafana.nix b/grafana.nix index 329f900..5620140 100644 --- a/grafana.nix +++ b/grafana.nix @@ -4,17 +4,19 @@ services.grafana = { enable = true; analytics.reporting.enable = false; - analytics.check_for_updates = false; protocol = "socket"; rootUrl = "https://stats.besaid.de/"; auth.anonymous.enable = true; - auth.anonymous.hide_version = true; - auth.signout_redirect_url = "/"; security = { adminUser = "tokudan"; adminPasswordFile = "/var/lib/grafana/admin.pw"; secretKeyFile = "/var/lib/grafana/security.key"; }; + extraOptions = { + "ANALYTICS.CHECK_FOR_UPDATES" = "false"; + "AUTH_ANONYMOUS_HIDE_VERSION" = "true"; + "AUTH_SIGNOUT_REDIRECT_URL" = "/"; + }; }; systemd.services.grafana.serviceConfig = { # upstream module already defines most hardening options