anchor.diff:        stopIfChanged = false;
         preStart =
           ''
  -        mkdir -p ${cfg.stateDir}/logs
  -        chmod 700 ${cfg.stateDir}
  -        chown -R ${cfg.user}:${cfg.group} ${cfg.stateDir}
  +        ${cfg.preStart}
           ${cfg.package}/bin/nginx -c ${configFile} -p ${cfg.stateDir} -t
           '';
         serviceConfig = {
  
positive.code:           Nginx package to use. This defaults to the stable version. Note
            that the nginx team recommends to use the mainline version which
            available in nixpkgs as <literal>nginxMainline</literal>.
          ";
        };
  
  
negative.code: 
    configFile = pkgs.writeText "nginx.conf" ''
      user ${cfg.user} ${cfg.group};
      error_log ${cfg.logError};
      daemon off;
  
      ${cfg.config}
  