23 lines
No EOL
418 B
Nix
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 = {
|
|
|
|
};
|
|
};
|
|
} |