anchor.diff:      };
     };
   
  +  imports = [
  +    (mkRemovedOptionModule [ "services" "nginx" "stateDir" ] ''
  +      The Nginx log directory has been moved to /var/log/nginx, the cache directory
  +      to /var/cache/nginx. The option services.nginx.stateDir has been removed.
  +    '')
  +  ];
  +
     config = mkIf cfg.enable {
       # TODO: test user supplied config file pases syntax test
   
  
positive.code:           The configuration file is exposed at <filename>/etc/nginx/nginx.conf</filename>.
            See also <literal>systemd.services.*.restartIfChanged</literal>.
          '';
        };
  
        stateDir = mkOption {
          default = "/var/spool/nginx";
          description = "
            Directory holding all state for nginx to run.
          ";
        };
  
        user = mkOption {
  
negative.code:     then "/etc/nginx/nginx.conf"
      else configFile;
  
    execCommand = "${cfg.package}/bin/nginx -c '${configPath}'";
  
    vhosts = concatStringsSep "\n" (mapAttrsToList (vhostName: vhost:
      let
  