nixos-hardware icon indicating copy to clipboard operation
nixos-hardware copied to clipboard

Lenovo/T14s/AMD: Always sets the kernel to be `pkgs.linuxPackages_latest`

Open etu opened this issue 1 year ago • 3 comments

Currently the nixos-hardware for T14s/AMD (https://github.com/NixOS/nixos-hardware/blob/master/lenovo/thinkpad/t14s/amd/gen1/default.nix) it defaults to use of pkgs.linuxPackages_latest, this doesn't always work with third party kernel modules such as zfs or VirtualBox.

So to get my system to build I had to set the kernel myself:

{
  boot.kernelPackages = pkgs.linuxPackages_5_18;
}

However, this didn't work because the nixos-hardware module had already set the kernel to 5.19.

So I had to force it:

{
  boot.kernelPackages = lib.mkForce pkgs.linuxPackages_5_18;
}

Is this really right?

etu avatar Aug 10 '22 06:08 etu