mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-26 21:09:42 +01:00
Test the kernel version, rather than the NixOS release version
Co-authored-by: Peder Bergebakken Sundt <pbsds@hotmail.com>
This commit is contained in:
parent
d1966ef874
commit
6f38f8576c
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ let
|
|||
inherit (lib) mkDefault mkEnableOption mkIf mkMerge version versionAtLeast versionOlder;
|
||||
|
||||
cfg = config.hardware.asus.zephyrus.ga402x;
|
||||
defaultAutosuspendEnable = if (versionAtLeast version "6.9") then true else false;
|
||||
defaultAutosuspendEnable = versionAtLeast config.boot.kernelPackages.kernel.version "6.9";
|
||||
|
||||
in {
|
||||
|
||||
|
|
Loading…
Reference in a new issue