From 10c26f143d12d46f2fc96d41e6eb46372c4c5d90 Mon Sep 17 00:00:00 2001 From: "Chinmay D. Pai" Date: Sun, 22 Sep 2024 15:01:29 +0530 Subject: [PATCH] fix: switch to the latest testing kernel on thonkpad The new Intel Core Ultra does not work that well with older kernel versions especially since the initial support was added in 6.8. Currently, the testing kernel is much more stable that the latest package on this processor. Signed-off-by: Chinmay D. Pai --- systems/x86_64-linux/thonkpad/hardware.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/systems/x86_64-linux/thonkpad/hardware.nix b/systems/x86_64-linux/thonkpad/hardware.nix index 733e83f..394f63d 100644 --- a/systems/x86_64-linux/thonkpad/hardware.nix +++ b/systems/x86_64-linux/thonkpad/hardware.nix @@ -1,4 +1,8 @@ -_: { +{ + lib, + pkgs, + ... +}: { boot = { initrd = { availableKernelModules = [ @@ -16,6 +20,7 @@ _: { "iwlwifi" "xe" ]; + kernelPackages = lib.mkDefault pkgs.linuxPackages_testing; kernelParams = [ # NixOS produces many wakeups per second, which is bad for battery life. # This disables the timer tick on the last 7 cores.