From 2155f4073f966dbbdc674786e9c19077a39346c7 Mon Sep 17 00:00:00 2001 From: steffen Date: Sat, 14 Mar 2026 15:04:29 +0100 Subject: [PATCH] fix Pi build: force initrd modules to exclude x86 hardware 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. --- hosts/cryodev-pi/sd-image.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/cryodev-pi/sd-image.nix b/hosts/cryodev-pi/sd-image.nix index 100123f..237f214 100644 --- a/hosts/cryodev-pi/sd-image.nix +++ b/hosts/cryodev-pi/sd-image.nix @@ -27,4 +27,12 @@ "vfat" "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" + ]; }