nixos: services: monitoring: persist data

This commit is contained in:
Bruno BELANYI 2021-11-05 15:40:29 +01:00
parent fce6fd6e79
commit f09db97960

View file

@ -130,5 +130,10 @@ in
inherit (cfg.grafana) port; inherit (cfg.grafana) port;
}; };
}; };
my.system.persist.directories = [
config.services.grafana.dataDir
"/var/lib/${config.services.prometheus.stateDir}"
];
}; };
} }