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:
parent
87ebf1654e
commit
22eb959f37
1 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue