Files
nixos-hardware/omen/16-n0005ne/default.nix
Sebastián Zavala Villagómez 232c204afb omen/*: 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`.
2025-04-29 19:34:40 +00:00

17 lines
347 B
Nix

{ config, lib, ... }:
{
imports = [
../../common/cpu/amd
../../common/cpu/amd/pstate.nix
../../common/gpu/amd
../../common/pc/laptop
../../common/pc/ssd
];
# Enables ACPI platform profiles
boot = lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.1") {
kernelModules = [ "hp-wmi" ];
};
}