From c74abf763af37fd453a2dd5aa8390da8256e4f8e Mon Sep 17 00:00:00 2001 From: Ben Kelly Date: Thu, 13 Dec 2018 18:14:21 -0500 Subject: nixos/munin: add extraPluginConfig option This lets you specify additional plugin-specific configuration to go in plugin-conf.d, and complements the extraConfig and extraGlobalConfig options. --- nixos/modules/services/monitoring/munin.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'nixos/modules/services/monitoring/munin.nix') diff --git a/nixos/modules/services/monitoring/munin.nix b/nixos/modules/services/monitoring/munin.nix index fb1a11a44f9..47ccf9b0a34 100644 --- a/nixos/modules/services/monitoring/munin.nix +++ b/nixos/modules/services/monitoring/munin.nix @@ -63,6 +63,8 @@ let [ipmi*] user root group root + + ${nodeCfg.extraPluginConfig} ''; pluginConfDir = pkgs.stdenv.mkDerivation { @@ -100,6 +102,18 @@ in }; # TODO: add option to add additional plugins + extraPluginConfig = mkOption { + default = ""; + type = types.lines; + description = '' + plugin-conf.d extra plugin configuration. See + + ''; + example = '' + [fail2ban_*] + user root + ''; + }; }; -- cgit 1.4.1