Skip to content

Commit 6267b43

Browse files
sebaszvmergify[bot]
authored andcommitted
hp/elitebook/830/g6: check kernel version through config instead of pkgs
The previous implementation was checking the kernel version through `pkgs.linux`, which is only representative of the final system if `boot.kernelPackages` is left as the default value of `pkgs.linuxPackages`. You can of course change this to other package sets, such as `pkgs.linuxPackages_latest`. Instead, we now reference the kernel through `config.boot.kernelPackages.kernel`.
1 parent badf2f2 commit 6267b43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hp/elitebook/830/g6/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ pkgs, lib, ... }:
1+
{ config, lib, ... }:
22
{
33
imports = [
44
../../../../common/cpu/intel
@@ -16,7 +16,7 @@
1616
services.fwupd.enable = lib.mkDefault true;
1717

1818
# Enables ACPI platform profiles
19-
boot = lib.mkIf (lib.versionAtLeast pkgs.linux.version "6.1") {
19+
boot = lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.1") {
2020
kernelModules = [ "hp-wmi" ];
2121
};
2222

0 commit comments

Comments
 (0)