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