16 lines
391 B
Nix
16 lines
391 B
Nix
|
{ config, ... }:
|
||
|
{
|
||
|
boot = {
|
||
|
bootspec.enable = false;
|
||
|
initrd.kernelModules = config.boot.kernelModules;
|
||
|
kernel.enable = false; # No kernel or modules in the rootfs
|
||
|
modprobeConfig.enable = false;
|
||
|
};
|
||
|
|
||
|
system.build = {
|
||
|
inherit (config.boot.kernelPackages) kernel;
|
||
|
};
|
||
|
|
||
|
system.modulesTree = [ config.boot.kernelPackages.kernel ] ++ config.boot.extraModulePackages;
|
||
|
}
|