From cc5222e85b7efcb219dcf067916243fac2b37da6 Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 7 Apr 2021 22:42:02 +0200 Subject: [PATCH] nixos-module/collectd: install additional TypesDB --- nix/nixos-module/collectd.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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 = "";