From 69f842bd6ec7f54da443a570dfb738c909523340 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Wed, 26 Apr 2023 14:22:06 +0200 Subject: [PATCH] core: experimental linux kernel version 6.4-rc0 --- modules/core/boot.nix | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/modules/core/boot.nix b/modules/core/boot.nix index a1764a3c..369c7e35 100644 --- a/modules/core/boot.nix +++ b/modules/core/boot.nix @@ -36,7 +36,33 @@ in { loader.systemd-boot.enable = lib.mkDefault true; # Use latest linux kernel by default - kernelPackages = lib.mkDefault pkgs.linuxPackages_6_1; + #kernelPackages = lib.mkDefault pkgs.linuxPackages_6_1; + kernelPackages = let + linux_6_4_pkg = { + fetchurl, + buildLinux, + ... + } @ args: + buildLinux (args + // rec { + version = "6.4-rc0"; + modDirVersion = "6.3.0"; + + src = fetchurl { + url = "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/snapshot/linux-master.tar.gz"; + sha256 = "sha256-RpeMCBannCFW/Q0t6ZYtyJlvMdVXnr7HfISJQsnyQBo="; + }; + + kernelPatches = []; + + ignoreConfigErrors = true; + + extraMeta.branch = "6.4"; + } + // (args.argsOverride or {})); + linux_6_4 = pkgs.callPackage linux_6_4_pkg {}; + in + pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor linux_6_4); # Support ntfs drives supportedFilesystems = ["ntfs"];