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

with pkgs.lib;

let
  cfg = config.services.dnsmasq;
  dnsmasq = pkgs.dnsmasq;

  serversParam = concatMapStrings (s: "-S ${s} ") cfg.servers;

in

{

  ###### interface
  
  options = {
  
    services.dnsmasq = {

      enable = mkOption {
        default = true;
        description = ''
          Whether to run dnsmasq.
        '';
      };

      servers = mkOption {
        default = [];
        example = [ "8.8.8.8" "8.8.4.4" ];
        description = ''
          The parameter to dnsmasq -S.
        '';
      };

    };

  };


  ###### implementation<commit_msg>* `dnsmasq' shouldn't run by default.<commit_after>{ config, pkgs, ... }:

with pkgs.lib;

let
  cfg = config.services.dnsmasq;
  dnsmasq = pkgs.dnsmasq;

  serversParam = concatMapStrings (s: "-S ${s} ") cfg.servers;

in

{

  ###### interface
  
  options = {
  
    services.dnsmasq = {

      enable = mkOption {
        default = false;
        description = ''
          Whether to run dnsmasq.
        '';
      };

      servers = mkOption {
        default = [];
        example = [ "8.8.8.8" "8.8.4.4" ];
        description = ''
          The parameter to dnsmasq -S.
        '';
      };

    };

  };


  ###### implementation
{'fraction_non_alphanumeric': 0.15881883479648842, 'fraction_numerical': 0.012769353551476457, 'mean_word_length': 1.6511627906976745, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '5549843', 'n_tokens_mistral': 459, 'n_tokens_neox': 439, 'n_words': 88}