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

let
  inherit (pkgs.lib) mkOption mkIf;

  cfg = config.environment.blcr;

  blcrPkg = config.boot.kernelPackages.blcr;

  insmod = "${pkgs.module_init_tools}/sbin/insmod";
  rmmod  = "${pkgs.module_init_tools}/sbin/rmmod";

  modulesDir      = "${blcrPkg}/lib/modules/${pkgs.linux.version}";
  blcr_imports_ko = "${modulesDir}/blcr_imports.ko";
  blcr_ko         = "${modulesDir}/blcr.ko";
in

{
  ###### interface

  options = {
    environment.blcr.enable = mkOption {
      default = false;
      description =
        "Wheter to enable support for the BLCR checkpointing tool.";
    };
<commit_msg>Make blcr module use the configured kernel<commit_after>{ config, pkgs, ... }:

let
  inherit (pkgs.lib) mkOption mkIf;
  cfg = config.environment.blcr;
  kernelPkgs = config.boot.kernelPackages;
  blcrPkg = kernelPkgs.blcr;

  insmod = "${pkgs.module_init_tools}/sbin/insmod";
  rmmod  = "${pkgs.module_init_tools}/sbin/rmmod";

  modulesDir      = "${blcrPkg}/lib/modules/${kernelPkgs.kernel.version}";
  blcr_imports_ko = "${modulesDir}/blcr_imports.ko";
  blcr_ko         = "${modulesDir}/blcr.ko";
in

{
  ###### interface

  options = {
    environment.blcr.enable = mkOption {
      default = false;
      description =
        "Wheter to enable support for the BLCR checkpointing tool.";
    };

{'fraction_non_alphanumeric': 0.14869888475836432, 'fraction_numerical': 0.0, 'mean_word_length': 3.259493670886076, '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': '3276055', 'n_tokens_mistral': 482, 'n_tokens_neox': 471, 'n_words': 86}