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