nixos: add server.nix for monitoring

This commit is contained in:
genofire 2021-10-15 02:14:01 +02:00
parent e4b13361f3
commit 3b4c9ea8bb
2 changed files with 9 additions and 0 deletions

View File

@ -6,6 +6,7 @@
{
imports = [
./hardware-configuration.nix
./repo/server.nix
./repo/default-hardware.nix
./repo/desktop-sway.nix
./repo/users.nix

8
nixos/server.nix Normal file
View File

@ -0,0 +1,8 @@
{
# enable monitoring
services.prometheus.exporters.node = {
enable = true;
openFirewall = true;
enabledCollectors = [ "systemd" ];
};
}