nixos/amazon-option: Tolerate harmless ec2.hvm for compatibility

Throwing an error necessitates changes in NixOps that are not safe yet.
This commit is contained in:
Robert Hensing 2023-01-05 13:07:12 +01:00
parent 87ebf1654e
commit 22eb959f37

View file

@ -2,9 +2,6 @@
let
inherit (lib) literalExpression types;
in {
imports = [
(lib.mkRemovedOptionModule [ "ec2" "hvm" ] "Only HVM instances are supported, so specifying it is no longer necessary.")
];
options = {
ec2 = {
zfs = {
@ -52,6 +49,12 @@ in {
Whether the EC2 instance is using EFI.
'';
};
hvm = lib.mkOption {
description = "Unused legacy option. While support for non-hvm has been dropped, we keep this option around so that NixOps remains compatible with a somewhat recent `nixpkgs` and machines with an old `stateVersion`.";
internal = true;
default = true;
readOnly = true;
};
};
};