<commit_before>{ config, pkgs, ... }:

with pkgs.lib;

let
  cfg = config.services.nginx;
  configFile = pkgs.writeText "nginx.conf" ''
    ${cfg.config}
  '';
in

{
  options = {
    services.nginx = {
      enable = mkOption {
        default = false;
        description = "
          Enable the nginx Web Server.
        ";
      };

      config = mkOption {
        default = "";
        description = "
          Verbatim nginx.conf configuration.
        ";
      };

      stateDir = mkOption {
        default = "/var/spool/nginx";
        description = "
          Directory holding all state for nginx to run.
        ";
      };
    };

  };<commit_msg>Set required nginx options and sane default<commit_after>{ config, pkgs, ... }:

with pkgs.lib;

let
  cfg = config.services.nginx;
  configFile = pkgs.writeText "nginx.conf" ''
    user nginx nginx;
    daemon off;
    ${cfg.config}
  '';
in

{
  options = {
    services.nginx = {
      enable = mkOption {
        default = false;
        description = "
          Enable the nginx Web Server.
        ";
      };

      config = mkOption {
        default = "events {}";
        description = "
          Verbatim nginx.conf configuration.
        ";
      };

      stateDir = mkOption {
        default = "/var/spool/nginx";
        description = "
          Directory holding all state for nginx to run.
        ";
      };
    };

  };
{'fraction_non_alphanumeric': 0.11923349893541518, 'fraction_numerical': 0.0, 'mean_word_length': 1.5871559633027523, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4883760', 'n_tokens_mistral': 449, 'n_tokens_neox': 424, 'n_words': 102}