kexec-installer: use latest kernel compatible with zfs

This commit is contained in:
Jörg Thalheim 2023-05-15 11:39:00 +02:00
parent 3db198a018
commit 4ad9c55cf2

View file

@ -24,6 +24,9 @@ in {
# We are stateless, so just default to latest.
system.stateVersion = config.system.nixos.version;
# use latest kernel we can support to get more hardware support
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
# This is a variant of the upstream kexecScript that also allows embedding
# a ssh key.
system.build.kexecRun = pkgs.runCommand "kexec-run" {} ''