anchor.diff:          { description = "Disnix server";
   
             startOn = "started dbus"
  -	  + optionalString config.services.httpd.enable " and started httpd"
  -	  + optionalString config.services.mysql.enable " and started mysql"
  -	  + optionalString config.services.tomcat.enable " and started tomcat"
  -	  + optionalString config.services.svnserve.enable " and started svnserve";
  +          + optionalString config.services.httpd.enable " and started httpd"
  +          + optionalString config.services.mysql.enable " and started mysql"
  +          + optionalString config.services.tomcat.enable " and started tomcat"
  +          + optionalString config.services.svnserve.enable " and started svnserve";
   
             script =
             ''
  -	    export PATH=/var/run/current-system/sw/bin:/var/run/current-system/sw/sbin
  +            export PATH=/var/run/current-system/sw/bin:/var/run/current-system/sw/sbin
               export HOME=/root
   
               ${pkgs.disnix}/bin/disnix-service --activation-modules-dir=${disnix_activation_scripts}/libexec/disnix/activation-scripts
  
positive.code: 
            startOn = "started avahi-daemon";
  
  	  exec =
            ''
              ${pkgs.avahi}/bin/avahi-publish-service disnix-${config.networking.hostName} _disnix._tcp 22 \
  	      "mem=$(grep 'MemTotal:' /proc/meminfo | sed -e 's/kB//' -e 's/MemTotal://' -e 's/ //g')" \
                "supportedTypes=[$(for i in ${disnix_activation_scripts}/libexec/disnix/activation-scripts/*; do echo -n " \"$(basename $i)\""; done) ]" \
  	      ${concatMapStrings (infrastructureAttrName:
  	        let infrastructureAttrValue = getAttr infrastructureAttrName (cfg.infrastructure);
  		in
  		if builtins.isInt infrastructureAttrValue then
  		''${infrastructureAttrName}=${toString infrastructureAttrValue} \
  		''
  		else
                  ''${infrastructureAttrName}=\"${infrastructureAttrValue}\" \
                  ''
  		) (attrNames (cfg.infrastructure))}
            '';
          };
      };
  
negative.code:     services.tomcat.extraGroups = [ "disnix" ];
      services.tomcat.javaOpts = "${optionalString cfg.useWebServiceInterface "-Djava.library.path=${pkgs.libmatthew_java}/lib/jni"} ";
      services.tomcat.sharedLibs = optional cfg.useWebServiceInterface "${pkgs.DisnixWebService}/share/java/DisnixConnection.jar"
                                   ++ optional cfg.useWebServiceInterface "${pkgs.dbus_java}/share/java/dbus.jar";
      services.tomcat.webapps = optional cfg.useWebServiceInterface pkgs.DisnixWebService;
  
      users.extraGroups = singleton
  