diff options
author | zowoq <59103226+zowoq@users.noreply.github.com> | 2022-02-10 17:56:58 +1000 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2022-02-27 15:04:37 -0800 |
commit | 177281ad00b6e5f1b3ba9acced399e2bc7d37340 (patch) | |
tree | 72fc73fad41c777ede5293d24182761ae7579698 /nixos/modules/virtualisation/amazon-image.nix | |
parent | 881a10922712ae4dbb784d5240728222ea176bf3 (diff) | |
download | nixpkgs-177281ad00b6e5f1b3ba9acced399e2bc7d37340.tar nixpkgs-177281ad00b6e5f1b3ba9acced399e2bc7d37340.tar.gz nixpkgs-177281ad00b6e5f1b3ba9acced399e2bc7d37340.tar.bz2 nixpkgs-177281ad00b6e5f1b3ba9acced399e2bc7d37340.tar.lz nixpkgs-177281ad00b6e5f1b3ba9acced399e2bc7d37340.tar.xz nixpkgs-177281ad00b6e5f1b3ba9acced399e2bc7d37340.tar.zst nixpkgs-177281ad00b6e5f1b3ba9acced399e2bc7d37340.zip |
nixos/amazon-image: use 5_10 kernel and add assert
Diffstat (limited to 'nixos/modules/virtualisation/amazon-image.nix')
-rw-r--r-- | nixos/modules/virtualisation/amazon-image.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/amazon-image.nix b/nixos/modules/virtualisation/amazon-image.nix index bd7077ff7ea..9a56b695015 100644 --- a/nixos/modules/virtualisation/amazon-image.nix +++ b/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) { |