about summary refs log tree commit diff
path: root/nixos/modules/virtualisation/amazon-options.nix
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-01-05 13:07:12 +0100
committerRobert Hensing <robert@roberthensing.nl>2023-01-08 19:01:02 +0100
commit22eb959f37d4dc44f354f262769f40f793f91fce (patch)
treeaeef9437702c63b3c9f0f44c6fd24a057fcaeaef /nixos/modules/virtualisation/amazon-options.nix
parent87ebf1654e1f1345b8abfb5c4410e3671208d3be (diff)
nixos/amazon-option: Tolerate harmless ec2.hvm for compatibility
Throwing an error necessitates changes in NixOps that are not safe yet.
Diffstat (limited to 'nixos/modules/virtualisation/amazon-options.nix')
-rw-r--r--nixos/modules/virtualisation/amazon-options.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/nixos/modules/virtualisation/amazon-options.nix b/nixos/modules/virtualisation/amazon-options.nix
index 915bbf9763db4..926fe43b0ffe6 100644
--- a/nixos/modules/virtualisation/amazon-options.nix
+++ b/nixos/modules/virtualisation/amazon-options.nix
@@ -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;
+      };
     };
   };