From a7af30e32e2a258558fd679e14a1aa38023b5fcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 17 Dec 2025 16:36:48 +0100 Subject: [PATCH] nixos/facter: fix ipu6 kernel version warning condition The suspension/shutdown regression affects kernel 6.16 and later, not just 6.16 specifically. Use versionAtLeast instead of equality check. Also fix issue reference (372 was a separate issue) and typo. --- nixos/modules/hardware/facter/camera/ipu6.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nixos/modules/hardware/facter/camera/ipu6.nix b/nixos/modules/hardware/facter/camera/ipu6.nix index 6acb5d597051..5319d8bf3d49 100644 --- a/nixos/modules/hardware/facter/camera/ipu6.nix +++ b/nixos/modules/hardware/facter/camera/ipu6.nix @@ -104,12 +104,12 @@ in config.warnings = let - isKernel6_16 = config.boot.kernelPackages.kernel.version == "6.16"; + isKernel6_16OrLater = lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.16"; inherit (detected.camera) ipu6; in - lib.optional (isKernel6_16 && ipu6.enable) '' - A regression bug can occur when combining ipu6 with kernel version 6.16. - This will most likely prevent your system from properely suspending or shutting down. - For more information see: https://github.com/intel/ipu6-drivers/issues/372 + lib.optional (isKernel6_16OrLater && ipu6.enable) '' + A regression bug can occur when combining ipu6 with kernel version 6.16 or later. + This will most likely prevent your system from properly suspending or shutting down. + For more information see: https://github.com/intel/ipu6-drivers/issues/381 ''; }