nixos/amazon-image: use 5_10 kernel and add assert

This commit is contained in:
zowoq 2022-02-10 17:56:58 +10:00 committed by Jonathan Ringer
parent 881a109227
commit 177281ad00

View file

@ -37,8 +37,13 @@ in
{ assertion = cfg.efi -> cfg.hvm;
message = "EC2 instances using EFI must be HVM instances.";
}
{ assertion = versionOlder config.boot.kernelPackages.kernel.version "5.15";
message = "ENA driver fails to build with kernel >= 5.15";
}
];
boot.kernelPackages = pkgs.linuxKernel.packages.linux_5_10;
boot.growPartition = cfg.hvm;
fileSystems."/" = mkIf (!cfg.zfs.enable) {