nixos-module/collectd: install additional TypesDB
This commit is contained in:
parent
662261bbd9
commit
cc5222e85b
|
@ -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 = "";
|
||||
|
|
Loading…
Reference in New Issue