From 3faccef81aea4e087dedb1b09cd239f6d4269f3b Mon Sep 17 00:00:00 2001 From: Ryan Lahfa Date: Tue, 13 Feb 2024 01:20:53 +0100 Subject: [PATCH] klingon: init Monitoring node. Signed-off-by: Ryan Lahfa --- hive.nix | 15 +++++++++++++++ profiles/netdata.nix | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 profiles/netdata.nix diff --git a/hive.nix b/hive.nix index 01cb4fd..175ea2a 100644 --- a/hive.nix +++ b/hive.nix @@ -84,4 +84,19 @@ in ]; }; + klingon = { name, nodes, ... }: { + deployment.tags = [ "monitoring" ]; + deployment.targetHost = "klingon.federez.net"; + networking.hostName = name; + + glucagon.networking = { + nibble = 230; + wan-mac = "BC:24:11:B7:AE:80"; + }; + + imports = [ + ./profiles/vm.nix + ./profiles/netdata.nix + ]; + }; } diff --git a/profiles/netdata.nix b/profiles/netdata.nix new file mode 100644 index 0000000..44e740f --- /dev/null +++ b/profiles/netdata.nix @@ -0,0 +1,3 @@ +{ ... }: { + services.netdata.enable = true; +}