Commit 177281ad authored by zowoq's avatar zowoq Committed by Jonathan Ringer
Browse files

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

parent 881a1092
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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) {