nixos-generate-config: look at mmc_host for device drivers
I needed to add sdhci_acpi and mmc_block to my initrd modules in order to boot my Chromebook. Looking under /sys/class/mmc_host/*/device/driver/module will give us the sdhci_acpi dependency.
···233233}
234234235235236236-# Add the modules for all block devices.
237237-foreach my $path (glob "/sys/class/block/*") {
236236+# Add the modules for all block and MMC devices.
237237+foreach my $path (glob "/sys/class/{block,mmc_host}/*") {
238238 my $module;
239239 if (-e "$path/device/driver/module") {
240240 $module = basename `readlink -f $path/device/driver/module`;