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
|
@ -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