Setup Impermanence

This commit is contained in:
Gonne Kretschmer 2023-11-03 16:39:28 +01:00
parent 1de0d32860
commit 2c2b24d0a9
2 changed files with 3 additions and 1 deletions

View file

@ -56,5 +56,5 @@ services = {
PasswordAuthentication = false; PasswordAuthentication = false;
}; };
}; };
}; };
} }

View file

@ -1,3 +1,4 @@
{config, ...}:
{ {
imports = [ ]; imports = [ ];
services.prometheus.exporters.node = { services.prometheus.exporters.node = {
@ -33,4 +34,5 @@
]; ];
}; };
networking.firewall.allowedTCPPorts = [ 9100 ]; networking.firewall.allowedTCPPorts = [ 9100 ];
environment.persistence.${config.impermanence.name}.directories = [ "/var/lib/${config.services.prometheus.stateDir}" ];
} }