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