forked from Fachschaft/nixConfig
Setup Impermanence
This commit is contained in:
parent
1de0d32860
commit
3da04e80ae
1 changed files with 2 additions and 0 deletions
|
@ -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}" ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue