File tree 2 files changed +19
-1
lines changed
nixos/modules/system/boot
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 242
242
'' ;
243
243
} ;
244
244
245
+ boot . initrd . allowMissingModules = mkOption {
246
+ type = types . bool ;
247
+ default = false ;
248
+ description = ''
249
+ Whether the initrd can be built even though modules listed in
250
+ {option}`boot.initrd.kernelModules` or
251
+ {option}`boot.initrd.availableKernelModules` are missing from
252
+ the kernel. This is useful when combining configurations that
253
+ include a lot of modules, such as
254
+ {option}`hardware.enableAllHardware`, with kernels that don't
255
+ provide as many modules as typical NixOS kernels.
256
+
257
+ Note that enabling this is discouraged. Instead, try disabling
258
+ individual modules by setting e.g.
259
+ `boot.initrd.availableKernelModules.foo = lib.mkForce false;`
260
+ '' ;
261
+ } ;
262
+
245
263
system . modulesTree = mkOption {
246
264
type = types . listOf types . path ;
247
265
internal = true ;
Original file line number Diff line number Diff line change 18
18
rootModules = config . boot . initrd . availableKernelModules ++ config . boot . initrd . kernelModules ;
19
19
kernel = config . system . modulesTree ;
20
20
firmware = config . hardware . firmware ;
21
- allowMissing = false ;
21
+ allowMissing = config . boot . initrd . allowMissingModules ;
22
22
inherit ( config . boot . initrd ) extraFirmwarePaths ;
23
23
} ;
24
24
You can’t perform that action at this time.
0 commit comments