2015-02-16 10:56:08 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
ec2 = {
|
|
|
|
hvm = lib.mkOption {
|
|
|
|
default = false;
|
|
|
|
internal = true;
|
|
|
|
description = ''
|
|
|
|
Whether the EC2 instance is a HVM instance.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-04-04 13:03:05 +02:00
|
|
|
config = {
|
|
|
|
assertions = [
|
|
|
|
{ assertion = config.ec2.hvm;
|
|
|
|
message = "Paravirtualized EC2 instances are no longer supported.";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2015-02-16 10:56:08 +01:00
|
|
|
}
|