pin specific linux kernel to test bug

This commit is contained in:
Tao Tien 2024-05-07 13:37:09 -07:00
parent c5824eef35
commit 583c039a26
2 changed files with 19 additions and 5 deletions

View file

@ -1,4 +1,8 @@
{pkgs, ...}: {
{
pkgs,
lib,
...
}: {
nix.settings.system-features = [
"benchmark"
"big-parallel"
@ -58,7 +62,17 @@
KERNEL=="hidraw*", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a3c5", MODE="0666"
'';
# boot.kernelPackages = pkgs.linuxPackages_latest;
# boot.kernelPackages = pkgs.linuxPackagesFor (pkgs.linux_6_8.override {
# argsOverride = rec {
# src = pkgs.fetchurl {
# url = "mirror://kernel/linux/kernel/v6.x/linux-${version}.tar.xz";
# sha256 = "sha256-HEzcudVg+tH7ldssuK++3JIvnq2Eg3H+QDY7E/n2Mbo=";
# };
# version = "6.8.8";
# modDirVersion = "6.8.8";
# };
# });
# boot.kernelPackages = pkgs.linuxPackages_6_8;
boot.kernelPackages = pkgs.linuxPackages_zen;
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];
boot.kernelModules = ["i2c-dev" "kvm-amd"];