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

main
zowoq 2 years ago committed by Jonathan Ringer
parent 881a109227
commit 177281ad00
  1. 5
      nixos/modules/virtualisation/amazon-image.nix

@ -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) {

Loading…
Cancel
Save