boot.initrd.availableKernelModules
The set of kernel modules in the initial ramdisk used during the
boot process. This set must include all modules necessary for
mounting the root device. That is, it should include modules
for the physical device (e.g., SCSI drivers) and for the file
system (e.g., ext3). The set specified here is automatically
closed under the module dependency relation, i.e., all
dependencies of the modules list here are included
automatically. The modules listed here are available in the
initrd, but are only loaded on demand (e.g., the ext3 module is
loaded automatically when an ext3 filesystem is mounted, and
modules for PCI devices are loaded when they match the PCI ID
of a device in your system). To force a module to be loaded,
include it in boot.initrd.kernelModules.
This can either be a list of modules, or an attrset. In an
attrset, names that are set to true represent modules that will
be included. Note that setting these names to false does not
prevent the module from being loaded. For that, use
boot.blacklistedKernelModules.
- Type
(attribute set of boolean) or (list of string) convertible to it- Default
{ }- Example
[ "sata_nv" "ext3" ]- Declared
- <nixpkgs/nixos/modules/system/boot/kernel.nix>