anchor.diff:          '';
         };
   
  -      # TODO: Re-enable after https://github.com/NixOS/nixpkgs/pull/15862 is merged
  -
  -      # virtualHost = mkOption {
  -      #   type = types.str;
  -      #   default = "${virtualHostName}";
  -      #   description = ''
  -      #     Name of existing nginx virtual host that is used to run web-application.
  -      #     If not specified a host will be created automatically with
  -      #     default values.
  -      #   '';
  -      # };
  +      virtualHost = mkOption {
  +        type = types.nullOr types.str;
  +        default = "tt-rss";
  +        description = ''
  +          Name of the nginx virtualhost to use and setup. If null, do not setup any virtualhost.
  +        '';
  +      };
   
         database = {
           type = mkOption {
  
positive.code:         pm.max_requests = 500
          catch_workers_output = 1
        '';
      } else {};
  
      # TODO: Re-enable after https://github.com/NixOS/nixpkgs/pull/15862 is merged
  
      # services.nginx.virtualHosts = if cfg.virtualHost == "${virtualHostName}" then {
      #   "${virtualHostName}" = {
      #     root = "${root}";
      #     extraConfig = ''
      #       access_log  /var/log/nginx-${virtualHostName}-access.log;
      #       error_log   /var/log/nginx-${virtualHostName}-error.log;
      #     '';
  
      #     locations."/" = {
      #       extraConfig = ''
      #         index index.php;
      #       '';
      #     };
  
      #     locations."~ \.php$" = {
      #       extraConfig = ''
      #         fastcgi_split_path_info ^(.+\.php)(/.+)$;
      #         fastcgi_pass unix:${phpfpmSocketName};
      #         fastcgi_index index.php;
      #         fastcgi_param SCRIPT_FILENAME ${root}/$fastcgi_script_name;
  
      #         include ${pkgs.nginx}/conf/fastcgi_params;
      #       '';
      #     };
      #   };
      # } else {};
  
  
      systemd.services.tt-rss = let
  
negative.code: 
    config = mkIf cfg.enable {
  
      services.phpfpm.poolConfigs = mkIf (cfg.pool == "${poolName}") {
        "${poolName}" = ''
          listen = "${phpfpmSocketName}";
          listen.owner = nginx
  