{ config, pkgs, lib, ...}: let secrets = import ; in { services.collectd = { enable = true; extraConfig = '' LoadPlugin network LoadPlugin conntrack LoadPlugin cpu LoadPlugin df LoadPlugin disk LoadPlugin interface LoadPlugin fhcount LoadPlugin load LoadPlugin memory LoadPlugin processes LoadPlugin swap LoadPlugin tcpconns LoadPlugin uptime LoadPlugin users LoadPlugin sensors LocalPort "443" Username "${config.networking.hostName}" Password "${secrets.influx_pass.${config.networking.hostName}}" ''; }; boot.kernel.sysctl."net.core.rmem_max" = 26214400; boot.kernel.sysctl."net.core.rmem_default" = 26214400; nixpkgs.config.packageOverrides = pkgs: { collectd = pkgs.collectd.override { jdk = null; libcredis = null; libdbi = null; libmemcached = null; cyrus_sasl = null; libmodbus = null; libnotify = null; gdk_pixbuf = null; libsigrok = null; libvirt = null; libxml2 = null; libtool = null; lvm2 = null; libmysql = null; protobufc = null; python = null; rabbitmq-c = null; riemann = null; rrdtool = null; varnish = null; yajl = null; net_snmp = null; }; }; }