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 let
hostRole = config.site.hosts.${hostName}.role; hostRole = config.site.hosts.${hostName}.role;
networkPort = 25826; networkPort = 25826;
typesDb = builtins.toFile "types.db" ''
stations value:GAUGE:0:U
'';
in in
{ {
services.collectd = { services.collectd = {
enable = true; enable = true;
buildMinimalPackage = true; buildMinimalPackage = true;
extraConfig = ''
TypesDB ${config.services.collectd.package}/share/collectd/types.db ${typesDb}
'';
plugins = lib.mkMerge [ { plugins = lib.mkMerge [ {
interface = ""; interface = "";
conntrack = ""; conntrack = "";