This commit is contained in:
iFargle 2023-07-05 19:04:30 +09:00
parent 3f1490483d
commit 91a2cd25ea

23
services/telegraf.nix Normal file
View file

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