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

{
  options = {
    environment.noXlibs = pkgs.lib.mkOption {
      default = false;
      example = true;
      description = ''
        Switch off the options in the default configuration that require X libraries.
        Currently this includes: ssh X11 forwarding, dbus, fonts.enableCoreFonts,
        fonts.enableFontConfig
      '';
    };
  };
  config = pkgs.lib.mkIf config.environment.noXlibs {
    programs.ssh.setXAuthLocation = false;
    services = {
      dbus.enable = false;
    };
    fonts = {
      enableCoreFonts = false;
      enableFontConfig = false;
    };
  };
}
<commit_msg>Don't disable D-Bus if environment.noXlibs is set<commit_after>{ config, pkgs, ... }:

{
  options = {
    environment.noXlibs = pkgs.lib.mkOption {
      default = false;
      example = true;
      description = ''
        Switch off the options in the default configuration that require X libraries.
        Currently this includes: ssh X11 forwarding, dbus, fonts.enableCoreFonts,
        fonts.enableFontConfig
      '';
    };
  };

  config = pkgs.lib.mkIf config.environment.noXlibs {
    programs.ssh.setXAuthLocation = false;
    fonts = {
      enableCoreFonts = false;
      enableFontConfig = false;
    };
  };
}

{'fraction_non_alphanumeric': 0.10426540284360189, 'fraction_numerical': 0.00315955766192733, 'mean_word_length': 2.424324324324324, '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': '898006', 'n_tokens_mistral': 400, 'n_tokens_neox': 377, 'n_words': 92}