<commit_before>let 
  rescueCDFun = import /etc/nixos/nixos/installer/cd-dvd/rescue-cd.nix;
  pkgs = import /etc/nixos/nixpkgs {};
  kernels = import /etc/nixos/configurations/misc/raskin/kernel-options.nix {inherit pkgs;};
  bootEntries = baseKernel: rec {
    kernelPackages = let 
      shippedKernelPackages = pkgs.kernelPackagesFor (baseKernel);
    in
    shippedKernelPackages //
      rec { 
          klibc = shippedKernelPackages.klibc.passthru.function (x: {
            # version = "1.5.14";
            # sha256 = "1cmrqpgamnv2ns7dlxjm61zc88dxm4ff0aya413ij1lmhp2h2sfc";
            # subdir = "Testing/";
            addPreBuild = ''
              ln -s $PWD/linux/include/*/errno.h linux/include/asm || echo errno.h already present
            '';
          });
          
          klibcShrunk = shippedKernelPackages.klibcShrunk.passthru.function {
            inherit klibc;
          };
      };
    
  };
in 

rescueCDFun {
  includeBuildDeps = true;
  configurationOverrides = x: {
    boot = x.boot // {
      kernelPackages = (bootEntries kernels.testingKernel).kernelPackages;
      initrd = x.boot.initrd // {
        extraKernelModules = x.boot.initrd.extraKernelModules ++ [
          "sr_mod" "atiixp"
        ];
	allowMissing = true;
      };
    };
    environment = {
      extraPackages = x.environment.extraPackages ++ [
        pkgs.utillinuxCurses pkgs.wpa_supplicant 
        pkgs.upstartJobControl pkgs.iproute
        pkgs.bc pkgs.fuse pkgs.zsh
        pkgs.sqlite pkgs.gnupg pkgs.manpages 
	pkgs.pinentry pkgs.screen

        pkgs.patch pkgs.which pkgs.diffutils pkgs.file 

        pkgs.irssi pkgs.mcabber pkgs.mutt 

        pkgs.emacs pkgs.vimHugeX pkgs.bvi 

        pkgs.ddrescue pkgs.cdrkit 

        pkgs.btrfsProgs pkgs.xfsProgs pkgs.jfsUtils
	pkgs.jfsrec pkgs.ntfs3g 

        pkgs.subversion16 pkgs.monotone pkgs.git pkgs.darcs
	pkgs.mercurial pkgs.bazaar pkgs.cvs 
	
	pkgs.pciutils pkgs.hddtemp pkgs.sdparm pkgs.hdparm 
	pkgs.usbutils 

	pkgs.openssh pkgs.lftp pkgs.w3m pkgs.openssl pkgs.ncat 
	pkgs.lynx pkgs.wget pkgs.elinks pkgs.socat pkgs.squid
        
        pkgs.unrar pkgs.zip pkgs.unzip pkgs.lzma pkgs.cabextract 
	pkgs.cpio 

        pkgs.lsof pkgs.ltrace 

        pkgs.perl pkgs.python pkgs.ruby pkgs.guile pkgs.clisp
	pkgs.tcl
      ];

      nix = pkgs.nixCustomFun ("" + /etc/nixos/nix + "/")
          ""
          ["nix-reduce-build" "nix-http-export.cgi"]
          ["--with-docbook-xsl=${pkgs.docbook5_xsl}/xml/xsl/docbook/"];
    };

#    nesting = {
#      children = [
#        (x // {
#          boot = x.boot // {
#            kernelPackages = (bootEntries kernels.testingKernel).kernelPackages;
#            configurationName = "Test child configuration";
#          };
#        })
#      ];
#    };
  };
}
<commit_msg>Made example of configurable DVD working with aby common base dir for NixOS/NixPkgs/Nix/configurations checkout<commit_after>let 
  rescueCDFun = import ./rescue-cd.nix;
  pkgs = import ../../../nixpkgs {};
  kernels = import ../../../configurations/misc/raskin/kernel-options.nix {inherit pkgs;};
  bootEntries = baseKernel: rec {
    kernelPackages = let 
      shippedKernelPackages = pkgs.kernelPackagesFor (baseKernel);
    in
    shippedKernelPackages //
      rec { 
          klibc = shippedKernelPackages.klibc.passthru.function (x: {
            # version = "1.5.14";
            # sha256 = "1cmrqpgamnv2ns7dlxjm61zc88dxm4ff0aya413ij1lmhp2h2sfc";
            # subdir = "Testing/";
            addPreBuild = ''
              ln -s $PWD/linux/include/*/errno.h linux/include/asm || echo errno.h already present
            '';
          });
          
          klibcShrunk = shippedKernelPackages.klibcShrunk.passthru.function {
            inherit klibc;
          };
      };
    
  };
in 

rescueCDFun {
  includeBuildDeps = true;
  configurationOverrides = x: {
    boot = x.boot // {
      kernelPackages = (bootEntries kernels.testingKernel).kernelPackages;
      initrd = x.boot.initrd // {
        extraKernelModules = x.boot.initrd.extraKernelModules ++ [
          "sr_mod" "atiixp"
        ];
	allowMissing = true;
      };
    };
    environment = {
      extraPackages = x.environment.extraPackages ++ [
        pkgs.utillinuxCurses pkgs.wpa_supplicant 
        pkgs.upstartJobControl pkgs.iproute
        pkgs.bc pkgs.fuse pkgs.zsh
        pkgs.sqlite pkgs.gnupg pkgs.manpages 
	pkgs.pinentry pkgs.screen

        pkgs.patch pkgs.which pkgs.diffutils pkgs.file 

        pkgs.irssi pkgs.mcabber pkgs.mutt 

        pkgs.emacs pkgs.vimHugeX pkgs.bvi 

        pkgs.ddrescue pkgs.cdrkit 

        pkgs.btrfsProgs pkgs.xfsProgs pkgs.jfsUtils
	pkgs.jfsrec pkgs.ntfs3g 

        pkgs.subversion16 pkgs.monotone pkgs.git pkgs.darcs
	pkgs.mercurial pkgs.bazaar pkgs.cvs 
	
	pkgs.pciutils pkgs.hddtemp pkgs.sdparm pkgs.hdparm 
	pkgs.usbutils 

	pkgs.openssh pkgs.lftp pkgs.w3m pkgs.openssl pkgs.ncat 
	pkgs.lynx pkgs.wget pkgs.elinks pkgs.socat pkgs.squid
        
        pkgs.unrar pkgs.zip pkgs.unzip pkgs.lzma pkgs.cabextract 
	pkgs.cpio 

        pkgs.lsof pkgs.ltrace 

        pkgs.perl pkgs.python pkgs.ruby pkgs.guile pkgs.clisp
	pkgs.tcl
      ];

      nix = pkgs.nixCustomFun ("" + ../../../nix + "/")
          ""
          ["nix-reduce-build" "nix-http-export.cgi"]
          ["--with-docbook-xsl=${pkgs.docbook5_xsl}/xml/xsl/docbook/"];
    };

#    nesting = {
#      children = [
#        (x // {
#          boot = x.boot // {
#            kernelPackages = (bootEntries kernels.testingKernel).kernelPackages;
#            configurationName = "Test child configuration";
#          };
#        })
#      ];
#    };
  };
}

{'fraction_non_alphanumeric': 0.1136685552407932, 'fraction_numerical': 0.009560906515580737, 'mean_word_length': 2.076797385620915, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7534244', 'n_tokens_mistral': 2272, 'n_tokens_neox': 2018, 'n_words': 313}