anchor.diff:          type = types.uniq types.bool;
         };
   
  +      ip = mkOption {
  +        description = "IP address to listen on.";
  +        default = "0.0.0.0";
  +        type = types.string;
  +      };
  +
         port = mkOption {
  -        description = "Mesos Slave port";
  +        description = "Port to listen on.";
           default = 5051;
           type = types.int;
         };
  
positive.code:       description = "Mesos Slave";
        wantedBy = [ "multi-user.target" ];
        after = [ "network-interfaces.target" ];
        environment.MESOS_CONTAINERIZERS = "docker,mesos";
        serviceConfig = {
          ExecStart = ''
            ${pkgs.mesos}/bin/mesos-slave \
              --port=${toString cfg.port} \
              --master=${cfg.master} \
              ${optionalString cfg.withHadoop "--hadoop-home=${pkgs.hadoop}"} \
              ${attribsArg} \
              --work_dir=${cfg.workDir} \
              --logging_level=${cfg.logLevel} \
              --docker=${pkgs.docker}/libexec/docker/docker \
              ${toString cfg.extraCmdLineOptions}
          '';
          PermissionsStartOnly = true;
  
negative.code:       withHadoop = mkOption {
          description = "Add the HADOOP_HOME to the slave.";
          default = false;
          type = types.bool;
        };
  
        withDocker = mkOption {
          description = "Enable the docker containerizer.";
          default = config.virtualisation.docker.enable;
          type = types.bool;
        };
  
  