Skip to content

Commit d586952

Browse files
authored
Merge pull request #269 from samueldr-wip/fix/regression-kernel-filename
fix build failure by providing kernel filename to internal NixOS option
2 parents 41923e4 + 3487b77 commit d586952

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/initrd-kernel.nix

+4
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ in
103103
else (pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor cfg.package))
104104
);
105105

106+
config.system.boot.loader.kernelFile = mkIf (cfg.package != null && cfg.package ? file) (
107+
mkDefault cfg.package.file
108+
);
109+
106110
# Disable kernel config checks as it's EXTREMELY nixpkgs-kernel centric.
107111
# We're duplicating that good work for the time being.
108112
config.system.requiredKernelConfig = lib.mkForce [];

0 commit comments

Comments
 (0)