nixos/firmware: fix default condition (#365532)

This commit is contained in:
Jörg Thalheim 2024-12-16 09:10:27 +01:00 committed by GitHub
commit d337b780d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -162,7 +162,7 @@ let
'';
compressFirmware = firmware:
if config.hardware.firmwareCompression == "none" || (firmware.compressFirmware or false) == false then firmware
if config.hardware.firmwareCompression == "none" || (firmware.compressFirmware or true) == false then firmware
else if config.hardware.firmwareCompression == "zstd" then pkgs.compressFirmwareZstd firmware
else pkgs.compressFirmwareXz firmware;