mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-03 16:57:14 +08:00
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`.
This commit is contained in:
committed by
mergify[bot]
parent
badf2f2f21
commit
6267b43af9
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, lib, ... }:
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../../../common/cpu/intel
|
../../../../common/cpu/intel
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
services.fwupd.enable = lib.mkDefault true;
|
services.fwupd.enable = lib.mkDefault true;
|
||||||
|
|
||||||
# Enables ACPI platform profiles
|
# Enables ACPI platform profiles
|
||||||
boot = lib.mkIf (lib.versionAtLeast pkgs.linux.version "6.1") {
|
boot = lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.1") {
|
||||||
kernelModules = [ "hp-wmi" ];
|
kernelModules = [ "hp-wmi" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user