aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name/mo/monitoring/components/grafana.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-19 16:41:40 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-19 16:41:40 +0200
commitb3ea882e4c3d9211bc6489887b41b6517801840d (patch)
tree5a3e6bf006da5f9d1befbe3709f57bf471d338fc /modules/by-name/mo/monitoring/components/grafana.nix
parentmodules/monitoring/: Hard-code all the {u,g}ids (diff)
downloadnixos-server-b3ea882e4c3d9211bc6489887b41b6517801840d.zip
modules/monitoring/: Persist all state directories
Diffstat (limited to 'modules/by-name/mo/monitoring/components/grafana.nix')
-rw-r--r--modules/by-name/mo/monitoring/components/grafana.nix10
1 files changed, 10 insertions, 0 deletions
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