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