2019-05-25 02:53:15 -07:00
|
|
|
{ config, lib, pkgs, ... }:
|
2015-02-16 01:56:08 -08:00
|
|
|
{
|
|
|
|
options = {
|
|
|
|
ec2 = {
|
|
|
|
hvm = lib.mkOption {
|
2018-07-25 13:22:54 -07:00
|
|
|
default = lib.versionAtLeast config.system.stateVersion "17.03";
|
2015-02-16 01:56:08 -08:00
|
|
|
internal = true;
|
|
|
|
description = ''
|
|
|
|
Whether the EC2 instance is a HVM instance.
|
|
|
|
'';
|
|
|
|
};
|
2019-05-25 02:53:15 -07:00
|
|
|
efi = lib.mkOption {
|
|
|
|
default = pkgs.stdenv.hostPlatform.isAarch64;
|
|
|
|
internal = true;
|
|
|
|
description = ''
|
|
|
|
Whether the EC2 instance is using EFI.
|
|
|
|
'';
|
|
|
|
};
|
2015-02-16 01:56:08 -08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|