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.
This commit is contained in:
@@ -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
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user