This commit is contained in:
NeoTheFox 2020-11-13 21:51:00 +03:00
parent 265520c400
commit f1a6c1b39d

32
kernel.nix Normal file
View File

@ -0,0 +1,32 @@
{ pkgs, ... }:
{
boot.kernelPackages = let
linux_xanmod_pkg = { fetchFromGitHub, buildLinux, ... } @ args:
buildLinux (args // rec {
version = "5.9.8-xanmod1";
modDirVersion = version;
src = fetchFromGitHub {
owner = "xanmod";
repo = "linux";
rev = "99f1ba6a16a7b65a504a62c104edd7f8a4ec1c47";
sha256 = "104jz68xxiw8vkgavahgaqq1gcfhy0xyz3v3vin7zykxf01nax6y";
extraPostFetch = ''
rm $out/.config
'';
};
kernelPatches = [];
extraConfig = ''
NUMA n
'';
extraMeta.branch = "5.9.8-xanmod1";
} // (args.argsOverride or {}));
linux_xanmod = pkgs.callPackage linux_xanmod_pkg{};
in
pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor linux_xanmod);
}