From 3da04e80aebd661f0f6e38103283a8003f01fedf Mon Sep 17 00:00:00 2001 From: Gonne Kretschmer Date: Fri, 3 Nov 2023 16:39:28 +0100 Subject: [PATCH] Setup Impermanence --- nixos/roles/prometheusNodeExporter.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/roles/prometheusNodeExporter.nix b/nixos/roles/prometheusNodeExporter.nix index e717411..749c6f4 100644 --- a/nixos/roles/prometheusNodeExporter.nix +++ b/nixos/roles/prometheusNodeExporter.nix @@ -1,3 +1,4 @@ +{config, ...}: { imports = [ ]; services.prometheus.exporters.node = { @@ -33,4 +34,5 @@ ]; }; networking.firewall.allowedTCPPorts = [ 9100 ]; + environment.persistence.${config.impermanence.name}.directories = [ "/var/lib/${config.services.prometheus.stateDir}" ]; }