crappy: get it to load the firmware required for its wifi chipset (mwifiex_sdio)

This commit is contained in:
Colin 2024-06-11 00:26:02 +00:00
parent 8ad118162e
commit a736d6d77b
2 changed files with 9 additions and 0 deletions

View File

@ -87,6 +87,13 @@ in
boot.initrd.compressor = "gzip";
# boot.initrd.compressorArgs = [ "--ultra" "-22" ];
hardware.firmware = [
(pkgs.linux-firmware.overrideAttrs (_: {
# mwifiex_sdio seems to require uncompressed firmware (even with a kernel configured for CONFIG_MODULE_COMPRESS_ZSTD=y)
passthru.compressFirmware = false;
}))
];
boot.initrd.availableKernelModules = [
# boot.initrd.kernelModules = [
# from postmarketOS

View File

@ -58,8 +58,10 @@ let
#
# Extra nixpkgs-specific options
# nixos/modules/system/boot/systemd.nix wants CONFIG_DMIID
# nixos/modules/services/hardware/udev.nix wants CONFIG_MODULE_COMPRESS_ZSTD
#
CONFIG_DMIID=y
CONFIG_MODULE_COMPRESS_ZSTD=y
#
# Extra sane-specific options