0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

nixos/stage-1: Add option for allowing missing modules

This commit is contained in:
Will Fancher 2025-01-22 21:25:39 -05:00
parent 028b3e1411
commit 96fb55514f
2 changed files with 19 additions and 1 deletions

View file

@ -258,6 +258,24 @@ in
'';
};
boot.initrd.allowMissingModules = mkOption {
type = types.bool;
default = false;
description = ''
Whether the initrd can be built even though modules listed in
{option}`boot.initrd.kernelModules` or
{option}`boot.initrd.availableKernelModules` are missing from
the kernel. This is useful when combining configurations that
include a lot of modules, such as
{option}`hardware.enableAllHardware`, with kernels that don't
provide as many modules as typical NixOS kernels.
Note that enabling this is discouraged. Instead, try disabling
individual modules by setting e.g.
`boot.initrd.availableKernelModules.foo = lib.mkForce false;`
'';
};
system.modulesTree = mkOption {
type = types.listOf types.path;
internal = true;