From b3ea882e4c3d9211bc6489887b41b6517801840d Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 19 Jul 2026 16:41:40 +0200 Subject: modules/monitoring/: Persist all state directories --- modules/by-name/mo/monitoring/components/grafana.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules/by-name/mo/monitoring/components/grafana.nix') diff --git a/modules/by-name/mo/monitoring/components/grafana.nix b/modules/by-name/mo/monitoring/components/grafana.nix index b1254e4..7b9665a 100644 --- a/modules/by-name/mo/monitoring/components/grafana.nix +++ b/modules/by-name/mo/monitoring/components/grafana.nix @@ -135,6 +135,16 @@ in { vhack = { postgresql.enable = true; + + persist.directories = [ + { + directory = "/var/lib/grafana/"; + user = "grafana"; + group = "grafana"; + mode = "0700"; + } + ]; + monitoring.grafana.dashboards = [ ../dashboards/Errors.json ../dashboards/Performance.json -- cgit v1.3.1