Fix eval error due to config.ec2.hvm
This commit is contained in:
parent
279565c3d6
commit
35dbcbb296
@ -15,6 +15,12 @@ let cfg = config.ec2; in
|
|||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
|
assertions = [
|
||||||
|
{ assertion = cfg.hvm;
|
||||||
|
message = "Paravirtualized EC2 instances are no longer supported.";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
virtualisation.growPartition = cfg.hvm;
|
virtualisation.growPartition = cfg.hvm;
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
options = {
|
options = {
|
||||||
ec2 = {
|
ec2 = {
|
||||||
hvm = lib.mkOption {
|
hvm = lib.mkOption {
|
||||||
default = false;
|
default = lib.versionAtLeast config.system.stateVersion "17.03";
|
||||||
internal = true;
|
internal = true;
|
||||||
description = ''
|
description = ''
|
||||||
Whether the EC2 instance is a HVM instance.
|
Whether the EC2 instance is a HVM instance.
|
||||||
@ -11,12 +11,4 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
|
||||||
assertions = [
|
|
||||||
{ assertion = config.ec2.hvm;
|
|
||||||
message = "Paravirtualized EC2 instances are no longer supported.";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user