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
+ '';
+ };
};