mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 21:33:11 +01:00
15 lines
265 B
Nix
15 lines
265 B
Nix
|
{ config, ... }:
|
||
|
{
|
||
|
services.prometheus = {
|
||
|
exporters = {
|
||
|
node = {
|
||
|
enable = true;
|
||
|
enabledCollectors = [ "systemd" ];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
networking.firewall.allowedTCPPorts = [
|
||
|
config.services.prometheus.exporters.node.port
|
||
|
];
|
||
|
}
|