Test the kernel version, rather than the NixOS release version

Co-authored-by: Peder Bergebakken Sundt <pbsds@hotmail.com>
This commit is contained in:
mexisme 2024-08-09 23:03:22 +12:00 committed by mergify[bot]
parent d1966ef874
commit 6f38f8576c

View file

@ -8,7 +8,7 @@ let
inherit (lib) mkDefault mkEnableOption mkIf mkMerge version versionAtLeast versionOlder; inherit (lib) mkDefault mkEnableOption mkIf mkMerge version versionAtLeast versionOlder;
cfg = config.hardware.asus.zephyrus.ga402x; 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 { in {