From 3b4c9ea8bb776d75bba8165d16afcaafc137ec0c Mon Sep 17 00:00:00 2001 From: genofire Date: Fri, 15 Oct 2021 02:14:01 +0200 Subject: [PATCH] nixos: add server.nix for monitoring --- nixos/configuration.nix | 1 + nixos/server.nix | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 nixos/server.nix diff --git a/nixos/configuration.nix b/nixos/configuration.nix index c17697c..404d0b7 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -6,6 +6,7 @@ { imports = [ ./hardware-configuration.nix + ./repo/server.nix ./repo/default-hardware.nix ./repo/desktop-sway.nix ./repo/users.nix diff --git a/nixos/server.nix b/nixos/server.nix new file mode 100644 index 0000000..9fc6d49 --- /dev/null +++ b/nixos/server.nix @@ -0,0 +1,8 @@ +{ + # enable monitoring + services.prometheus.exporters.node = { + enable = true; + openFirewall = true; + enabledCollectors = [ "systemd" ]; + }; +}