anchor.diff:          '';
         };
   
  -      # TODO: add option to add additional plugins
         extraPluginConfig = mkOption {
           default = "";
           type = types.lines;
  
positive.code:       ln -s ${pluginConf} $out/nixos-config
      '';
    };
  in
  
  {
  
negative.code:         # Autoconfigure builtin plugins
          ${pkgs.munin}/bin/munin-node-configure --suggest --shell --families contrib,auto,manual --config ${nodeConf} --libdir=${pkgs.munin}/lib/plugins --servicedir=/etc/munin/plugins --sconfdir=${pluginConfDir} 2>/dev/null | ${pkgs.bash}/bin/bash
  
          # Autoconfigure extra plugins
          ${pkgs.munin}/bin/munin-node-configure --suggest --shell --families contrib,auto,manual --config ${nodeConf} --libdir=${extraAutoPluginDir} --servicedir=/etc/munin/plugins --sconfdir=${pluginConfDir} 2>/dev/null | ${pkgs.bash}/bin/bash
  
          ${lib.optionalString (nodeCfg.extraPlugins != {}) ''
              # Link in manually enabled plugins
              ln -f -s -t /etc/munin/plugins ${extraPluginDir}/*
            ''}
  
          ${lib.optionalString (nodeCfg.disabledPlugins != []) ''
              # Disable plugins
  