diff --git a/asus/zephyrus/ga402/default.nix b/asus/zephyrus/ga402/default.nix index 7c11090eb..2002fd09f 100644 --- a/asus/zephyrus/ga402/default.nix +++ b/asus/zephyrus/ga402/default.nix @@ -1,4 +1,4 @@ -{ lib, ... }: +{ lib, config, ... }: { imports = [ @@ -22,4 +22,11 @@ boot = { kernelParams = [ "pcie_aspm.policy=powersupersave" ]; }; + + assertions = [ + { + assertion = (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.2"); + message = "The ga402 requires kernel version >=6.2 to ensure that fans are correctly managed. Please upgrade nixpkgs for this system."; + } + ]; }