nixos/amazon-image: use 5_10 kernel and add assert
This commit is contained in:
parent
881a109227
commit
177281ad00
1 changed files with 5 additions and 0 deletions
|
@ -37,8 +37,13 @@ in
|
||||||
{ assertion = cfg.efi -> cfg.hvm;
|
{ assertion = cfg.efi -> cfg.hvm;
|
||||||
message = "EC2 instances using EFI must be HVM instances.";
|
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;
|
boot.growPartition = cfg.hvm;
|
||||||
|
|
||||||
fileSystems."/" = mkIf (!cfg.zfs.enable) {
|
fileSystems."/" = mkIf (!cfg.zfs.enable) {
|
||||||
|
|
Loading…
Reference in a new issue