<commit_before>{ lib, ... }:

{
  imports = [
    ../../../common/cpu/intel
    ../../../common/pc/laptop
    ../../../common/pc/ssd
  ];

  # TODO: boot loader
  #boot.loader.systemd-boot.enable = lib.mkDefault true;
  boot.kernelPackages = pkgs.linuxPackages_5_1;
  boot.loader.efi.canTouchEfiVariables = lib.mkDefault true;

  # The 48.ucode causes the Killer wifi card to crash.
  # The iwlfwifi-cc-a0-46.ucode works perfectly
  nixpkgs.pkgs = import <nixpkgs> {
    config.allowUnfree = true;
    overlays = [
      (self: super: {
        firmwareLinuxNonfree = super.firmwareLinuxNonfree.overrideAttrs (old: {
          src = super.fetchgit{
            url = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git";
            rev = "bf13a71b18af229b4c900b321ef1f8443028ded8";
            sha256 = "1dcaqdqyffxiadx420pg20157wqidz0c0ca5mrgyfxgrbh6a4mdj";
          };
          postInstall = ''
            rm $out/lib/firmware/iwlwifi-cc-a0-48.ucode
          '';
          outputHash = "0dq48i1cr8f0qx3nyq50l9w9915vhgpwmwiw3b4yhisbc3afyay4";
        });
      })
    ];
  };
}
<commit_msg>Make note about EFI and remove 5.1 kernel hardcode<commit_after>{ lib, ... }:

{
  imports = [
    ../../../common/cpu/intel
    ../../../common/pc/laptop
    ../../../common/pc/ssd
  ];

  # Set to true for just the first run, then disable it.
  # boot.loader.efi.canTouchEfiVariables = lib.mkDefault true;

  # The 48.ucode causes the Killer wifi card to crash.
  # The iwlfwifi-cc-a0-46.ucode works perfectly
  nixpkgs.pkgs = import <nixpkgs> {
    config.allowUnfree = true;
    overlays = [
      (self: super: {
        firmwareLinuxNonfree = super.firmwareLinuxNonfree.overrideAttrs (old: {
          src = super.fetchgit{
            url = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git";
            rev = "bf13a71b18af229b4c900b321ef1f8443028ded8";
            sha256 = "1dcaqdqyffxiadx420pg20157wqidz0c0ca5mrgyfxgrbh6a4mdj";
          };
          postInstall = ''
            rm $out/lib/firmware/iwlwifi-cc-a0-48.ucode
          '';
          outputHash = "0dq48i1cr8f0qx3nyq50l9w9915vhgpwmwiw3b4yhisbc3afyay4";
        });
      })
    ];
  };
}

{'fraction_non_alphanumeric': 0.13613749434644956, 'fraction_numerical': 0.06331976481230213, 'mean_word_length': 2.2529411764705882, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '4123550', 'n_tokens_mistral': 922, 'n_tokens_neox': 843, 'n_words': 119}