diff --git a/nix/nixos-module/collectd.nix b/nix/nixos-module/collectd.nix index 8c91bf9..2396fe1 100644 --- a/nix/nixos-module/collectd.nix +++ b/nix/nixos-module/collectd.nix @@ -3,12 +3,19 @@ let hostRole = config.site.hosts.${hostName}.role; networkPort = 25826; + typesDb = builtins.toFile "types.db" '' + stations value:GAUGE:0:U + ''; in { services.collectd = { enable = true; buildMinimalPackage = true; + extraConfig = '' + TypesDB ${config.services.collectd.package}/share/collectd/types.db ${typesDb} + ''; + plugins = lib.mkMerge [ { interface = ""; conntrack = "";