1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-13 04:04:35 +03:00

fix build failure by providing kernel filename to internal NixOS option

The update from 29a10085f3 caused the
uncompressed kernel to not be installed anymore into the kernel output.

This meant that building the top-level argument failed as a file assumed
to exist wasn't there anymore.

We now provide the appropriate filename when we know it.
This commit is contained in:
Samuel Dionne-Riel 2020-12-31 16:21:38 -05:00
parent 41923e4895
commit 3487b77503

View File

@ -103,6 +103,10 @@ in
else (pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor cfg.package))
);
config.system.boot.loader.kernelFile = mkIf (cfg.package != null && cfg.package ? file) (
mkDefault cfg.package.file
);
# Disable kernel config checks as it's EXTREMELY nixpkgs-kernel centric.
# We're duplicating that good work for the time being.
config.system.requiredKernelConfig = lib.mkForce [];