about summary refs log tree commit diff
path: root/nixos/modules/testing
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2022-12-20 14:28:47 +0100
committerNaïm Favier <n@monade.li>2022-12-22 01:42:15 +0100
commitf677cbabe93e039a9d4ac995a49f9ca7991d0a9c (patch)
tree6b463d49eb1d7298818dc84c83af5d0f17ef36dd /nixos/modules/testing
parentcf568d20d5bc094292fc02fdce92201b11a7f169 (diff)
nixos/tests: remove minimal-kernel module
It's not used, doesn't build, and seems like the only reason to have
`manualConfig` take `stdenv` as an argument.
Diffstat (limited to 'nixos/modules/testing')
-rw-r--r--nixos/modules/testing/minimal-kernel.nix28
1 files changed, 0 insertions, 28 deletions
diff --git a/nixos/modules/testing/minimal-kernel.nix b/nixos/modules/testing/minimal-kernel.nix
deleted file mode 100644
index 7c2b9c05cf9a0..0000000000000
--- a/nixos/modules/testing/minimal-kernel.nix
+++ /dev/null
@@ -1,28 +0,0 @@
-{ config, pkgs, lib, ... }:
-
-let
-  configfile = builtins.storePath (builtins.toFile "config" (lib.concatStringsSep "\n"
-    (map (builtins.getAttr "configLine") config.system.requiredKernelConfig))
-  );
-
-  origKernel = pkgs.buildLinux {
-    inherit (pkgs.linux) src version stdenv;
-    inherit configfile;
-    allowImportFromDerivation = true;
-    kernelPatches = [ pkgs.kernelPatches.cifs_timeout_2_6_38 ];
-  };
-
-  kernel = origKernel // (derivation (origKernel.drvAttrs // {
-    configurePhase = ''
-      runHook preConfigure
-      mkdir ../build
-      make $makeFlags "''${makeFlagsArray[@]}" mrproper
-      make $makeFlags "''${makeFlagsArray[@]}" KCONFIG_ALLCONFIG=${configfile} allnoconfig
-      runHook postConfigure
-    '';
-  }));
-
-   kernelPackages = pkgs.linuxPackagesFor kernel;
-in {
-  boot.kernelPackages = kernelPackages;
-}