anchor.diff:      </server>
       <import hidden-files="no">
         <scripting script-charset="UTF-8">
  -        <common-script>${pkgs.mediatomb}/share/mediatomb/js/common.js</common-script>
  -        <playlist-script>${pkgs.mediatomb}/share/mediatomb/js/playlists.js</playlist-script>
  +        <common-script>${pkg}/share/${name}/js/common.js</common-script>
  +        <playlist-script>${pkg}/share/${name}/js/playlists.js</playlist-script>
           <virtual-layout type="builtin">
  -          <import-script>${pkgs.mediatomb}/share/mediatomb/js/import.js</import-script>
  +          <import-script>${pkg}/share/${name}/js/import.js</import-script>
           </virtual-layout>
         </scripting>
         <mappings>
  
positive.code:         group = cfg.group;
          home = "${cfg.dataDir}";
          createHome = true;
          description = "Mediatomb DLNA Server User";
        };
      };
  
      networking.firewall = {
        allowedUDPPorts = [ 1900 cfg.port ];
        allowedTCPPorts = [ cfg.port ];
      };
  
negative.code: 
    gid = config.ids.gids.mediatomb;
    cfg = config.services.mediatomb;
    name = cfg.package.pname;
    pkg = cfg.package;
    optionYesNo = option: if option then "yes" else "no";
  
    mtConf = pkgs.writeText "config.xml" ''
    <?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>
      <server>
        <ui enabled="yes" show-tooltips="yes">
          <accounts enabled="no" session-timeout="30">
            <account user="${name}" password="${name}"/>
          </accounts>
        </ui>
        <name>${cfg.serverName}</name>
        <udn>uuid:${cfg.uuid}</udn>
        <home>${cfg.dataDir}</home>
        <interface>${cfg.interface}</interface>
        <webroot>${pkg}/share/${name}/web</webroot>
        <storage>
          <sqlite3 enabled="yes">
            <database-file>${name}.db</database-file>
          </sqlite3>
        </storage>
        <protocolInfo extend="${optionYesNo cfg.ps3Support}"/>
        ${lib.optionalString cfg.dsmSupport ''
        <custom-http-headers>
          <add header="X-User-Agent: redsonic"/>
        </custom-http-headers>
  
        <manufacturerURL>redsonic.com</manufacturerURL>
        <modelNumber>105</modelNumber>
        ''}
          ${optionalString cfg.tg100Support ''
        <upnp-string-limit>101</upnp-string-limit>
        ''}
        <extended-runtime-options>
          <mark-played-items enabled="yes" suppress-cds-updates="yes">
            <string mode="prepend">*</string>
  