1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-24 02:29:44 +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:
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;
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 {