Compare commits
1 commit
3da04e80ae
...
a140b4d9ec
Author | SHA1 | Date | |
---|---|---|---|
|
a140b4d9ec |
3 changed files with 2 additions and 3 deletions
|
@ -39,6 +39,7 @@ 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";
|
||||||
|
|
|
@ -56,5 +56,5 @@ services = {
|
||||||
PasswordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
{config, ...}:
|
|
||||||
{
|
{
|
||||||
imports = [ ];
|
imports = [ ];
|
||||||
services.prometheus.exporters.node = {
|
services.prometheus.exporters.node = {
|
||||||
|
@ -34,5 +33,4 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
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