anchor.diff:          '';
         };
   
  +      mediaDirectories = mkOption {
  +        type = with types; listOf (submodule mediaDirectory);
  +        default = {};
  +        description = ''
  +          Declare media directories to index.
  +        '';
  +        example = [
  +          { path = "/data/pictures"; recursive = false; hidden-files = false; }
  +          { path = "/data/audio"; recursive = true; hidden-files = false; }
  +        ];
  +      };
  +
         customCfg = mkOption {
           type = types.bool;
           default = false;
  
positive.code:       </extended-runtime-options>
      </server>
      <import hidden-files="no">
        <scripting script-charset="UTF-8">
          <common-script>${pkg}/share/${name}/js/common.js</common-script>
          <playlist-script>${pkg}/share/${name}/js/playlists.js</playlist-script>
  
negative.code: '';
  
    mtConf = pkgs.writeText "config.xml" ''
    <!--
       See http://gerbera.io or read the docs for more
       information on creating and using config.xml configration files.
      -->
    <?xml version="1.0" encoding="UTF-8"?>
    <config version="2" xmlns="http://mediatomb.cc/config/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd">
      <interface>${cfg.interface}</interface>
  