From 91a2cd25ea70764fe41a60697b79175c2edcdce4 Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 5 Jul 2023 19:04:30 +0900 Subject: [PATCH] test --- services/telegraf.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 services/telegraf.nix diff --git a/services/telegraf.nix b/services/telegraf.nix new file mode 100644 index 00000000..e4e2f227 --- /dev/null +++ b/services/telegraf.nix @@ -0,0 +1,23 @@ +{ config, pkgs, hostname, ... }: { + # Telegraf Monitoring + + sops.secrets.telegraf-pass = { + owner = "telegraf"; + sopsFile = ../secrets/secrets.yaml; + restartUnits = [ "telegraf.service" ]; + }; + + # Install the package + environment.systemPackages = with pkgs; [ + lm-sensors + telegraf + ]; + + # Configure the package: + services.telegraf = { + enable = true; + extraConfig = { + + }; + }; +} \ No newline at end of file