anchor.diff:    ###### implementation
   
     config = mkIf cfg.enable {
  -    systemd.services.mediatomb = {
  -      description = "MediaTomb media Server";
  +    systemd.services."${name}"= {
  +      description = "${cfg.serverName} media Server";
         after = [ "network.target" ];
         wantedBy = [ "multi-user.target" ];
  -      path = [ pkgs.mediatomb ];
  -      serviceConfig.ExecStart = "${pkgs.mediatomb}/bin/mediatomb -p ${toString cfg.port} ${if cfg.interface!="" then "-e ${cfg.interface}" else ""} ${if cfg.customCfg then "" else "-c ${mtConf}"} -m ${cfg.dataDir}";
  +      serviceConfig.ExecStart = "${pkg}/bin/${name} -p ${toString cfg.port} ${if cfg.interface!="" then "-e ${cfg.interface}" else ""} ${if cfg.customCfg then "" else "-c ${mtConf}"} -m ${cfg.dataDir}";
         serviceConfig.User = "${cfg.user}";
       };
   
  
positive.code: 
    gid = config.ids.gids.mediatomb;
    cfg = config.services.mediatomb;
  
    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">
      <server>
        <ui enabled="yes" show-tooltips="yes">
          <accounts enabled="no" session-timeout="30">
            <account user="mediatomb" password="mediatomb"/>
          </accounts>
        </ui>
        <name>${cfg.serverName}</name>
        <udn>uuid:${cfg.uuid}</udn>
        <home>${cfg.dataDir}</home>
        <webroot>${pkgs.mediatomb}/share/mediatomb/web</webroot>
        <storage>
          <sqlite3 enabled="yes">
            <database-file>mediatomb.db</database-file>
          </sqlite3>
        </storage>
        <protocolInfo extend="${if cfg.ps3Support then "yes" else "no"}"/>
        ${if cfg.dsmSupport then ''
        <custom-http-headers>
          <add header="X-User-Agent: redsonic"/>
        </custom-http-headers>
  
        <manufacturerURL>redsonic.com</manufacturerURL>
        <modelNumber>105</modelNumber>
        '' else ""}
        ${if cfg.tg100Support then ''
        <upnp-string-limit>101</upnp-string-limit>
        '' else ""}
        <extended-runtime-options>
          <mark-played-items enabled="yes" suppress-cds-updates="yes">
            <string mode="prepend">*</string>
  
negative.code: 
        dataDir = mkOption {
          type = types.path;
          default = "/var/lib/${name}";
          description = ''
            The directory where ${cfg.serverName} stores its state, data, etc.
          '';
        };
  
        user = mkOption {
          default = "mediatomb";
          description = "User account under which ${name} runs.";
        };
  
        group = mkOption {
          default = "mediatomb";
          description = "Group account under which ${name} runs.";
        };
  
        port = mkOption {
  