nix/services/telegraf.nix
2023-07-05 19:04:30 +09:00

23 lines
No EOL
418 B
Nix

{ 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 = {
};
};
}