Compare commits

..

1 commit

Author SHA1 Message Date
Gonne Kretschmer
3da04e80ae Setup Impermanence 2023-11-03 16:39:28 +01:00
3 changed files with 3 additions and 2 deletions

View file

@ -39,7 +39,6 @@ config = mkIf cfg.enable {
"/etc/ssh/ssh_host_ed25519_key.pub" "/etc/ssh/ssh_host_ed25519_key.pub"
"/etc/ssh/ssh_host_rsa_key" "/etc/ssh/ssh_host_rsa_key"
"/etc/ssh/ssh_host_rsa_key.pub" "/etc/ssh/ssh_host_rsa_key.pub"
"/var/lib/${config.services.prometheus.stateDir}"
]; ];
}; };
environment.etc.machine-id.source = "${cfg.storagePath}/machine-id"; environment.etc.machine-id.source = "${cfg.storagePath}/machine-id";

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}" ];
} }