fix Pi build: force initrd modules to exclude x86 hardware
Some checks failed
CI / flake-check (pull_request) Successful in 31s
CI / build-hosts (pull_request) Failing after 1m23s

sd-image.nix imports all-hardware.nix which adds modules like dw-hdmi
that don't exist in the RPi4 kernel. mkForce the availableKernelModules
list to only include Pi-relevant modules.
This commit is contained in:
steffen 2026-03-14 15:04:29 +01:00
parent 6ad46e7452
commit 2155f4073f

View file

@ -27,4 +27,12 @@
"vfat" "vfat"
"ext4" "ext4"
]; ];
# sd-image.nix imports all-hardware.nix which adds x86 modules like dw-hdmi
# that don't exist in the RPi4 kernel. Filter them out.
boot.initrd.availableKernelModules = lib.mkForce [
"xhci_pci"
"usbhid"
"usb_storage"
];
} }