nixos-module/collectd: install additional TypesDB

This commit is contained in:
Astro 2021-04-07 22:42:02 +02:00
parent 662261bbd9
commit cc5222e85b
1 changed files with 7 additions and 0 deletions

View File

@ -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 = "";