Skip to content

Commit 232c204

Browse files
sebaszvmergify[bot]
authored andcommitted
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`.
1 parent 01f1548 commit 232c204

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

omen/14-fb0798ng/default.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ lib, pkgs, ... }:
1+
{ config, lib, ... }:
22

33
{
44
imports = [
@@ -10,7 +10,7 @@
1010
];
1111

1212
# Enables ACPI platform profiles
13-
boot = lib.mkIf (lib.versionAtLeast pkgs.linux.version "6.1") {
13+
boot = lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.1") {
1414
kernelModules = [ "hp-wmi" ];
1515
};
1616

omen/15-en0010ca/default.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ lib, pkgs, ... }:
1+
{ config, lib, ... }:
22

33
{
44
imports = [
@@ -12,7 +12,7 @@
1212
];
1313

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

omen/15-en1007sa/default.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ lib, pkgs, ... }:
1+
{ config, lib, ... }:
22

33
{
44
imports = [
@@ -11,7 +11,7 @@
1111
];
1212

1313
# Enables ACPI platform profiles
14-
boot = lib.mkIf (lib.versionAtLeast pkgs.linux.version "6.1") {
14+
boot = lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.1") {
1515
kernelModules = [ "hp-wmi" ];
1616
};
1717

omen/16-n0005ne/default.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ lib, pkgs, ... }:
1+
{ config, lib, ... }:
22

33
{
44
imports = [
@@ -10,7 +10,7 @@
1010
];
1111

1212
# Enables ACPI platform profiles
13-
boot = lib.mkIf (lib.versionAtLeast pkgs.linux.version "6.1") {
13+
boot = lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.1") {
1414
kernelModules = [ "hp-wmi" ];
1515
};
1616
}

omen/16-n0280nd/default.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ lib, pkgs, ... }:
1+
{ config, lib, ... }:
22

33
{
44
imports = [
@@ -11,7 +11,7 @@
1111
];
1212

1313
# Enables ACPI platform profiles
14-
boot = lib.mkIf (lib.versionAtLeast pkgs.linux.version "6.1") {
14+
boot = lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.1") {
1515
kernelModules = [ "hp-wmi" ];
1616
};
1717

0 commit comments

Comments
 (0)