mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-07 02:18:47 +08:00
fix: Add an upgrade
This commit is contained in:
committed by
mergify[bot]
parent
1a59c3d5ac
commit
aab67495e3
@@ -12,15 +12,4 @@ Gen3](https://www.tuxedocomputers.com/en/TUXEDO-Pulse-14-Gen3).
|
||||
|
||||
With the Linux Kernel version `6.6.33` (NixOS 24.05) there are shutdown issues resulting in the battery not turning off
|
||||
completely. Apparently a newer Kernel (tested with `6.8.12`) fixes this (the exact version where this problem is fixed is unknown).
|
||||
|
||||
You can use
|
||||
|
||||
```nix
|
||||
boot.kernelPackages =
|
||||
if (config.boot.zfs.enabled)
|
||||
then pkgs.zfs.latestCompatibleLinuxPackages
|
||||
else pkgs.linuxPackages_latest;
|
||||
```
|
||||
|
||||
to use the latest Kernel, where `pkgs` should probably
|
||||
be the `nixos-unstable` channel (`github:nixos/nixpkgs/nixos-unstable`).
|
||||
This `default.nix` will upgrade to the `pkgs.linuxPackages_latest` if the kernel is older than `6.8.12`.
|
||||
|
||||
Reference in New Issue
Block a user