summary refs log tree commit diff
path: root/nixos/modules/virtualisation/amazon-options.nix
diff options
context:
space:
mode:
authorRob Vermaas <rob.vermaas@gmail.com>2015-02-16 09:56:08 +0000
committerRob Vermaas <rob.vermaas@gmail.com>2015-02-16 09:57:19 +0000
commit824fccd3e90cf75d5e2968fef2392f70e04d9f9c (patch)
treec2c58ca618d163aab0e6640ce5fef6dae04c1f6d /nixos/modules/virtualisation/amazon-options.nix
parent85e2076a0b201daeca3a34169076a88c59dc8e91 (diff)
downloadnixpkgs-824fccd3e90cf75d5e2968fef2392f70e04d9f9c.tar
nixpkgs-824fccd3e90cf75d5e2968fef2392f70e04d9f9c.tar.gz
nixpkgs-824fccd3e90cf75d5e2968fef2392f70e04d9f9c.tar.bz2
nixpkgs-824fccd3e90cf75d5e2968fef2392f70e04d9f9c.tar.lz
nixpkgs-824fccd3e90cf75d5e2968fef2392f70e04d9f9c.tar.xz
nixpkgs-824fccd3e90cf75d5e2968fef2392f70e04d9f9c.tar.zst
nixpkgs-824fccd3e90cf75d5e2968fef2392f70e04d9f9c.zip
Move amazon option out of amazon-image.nix, needed to make ec2.hvm usable from nixops, without breaking evaluation for other backends.
(cherry picked from commit 213fe8427c5ce455b893c0c5c56cc38175bf36b7)
Diffstat (limited to 'nixos/modules/virtualisation/amazon-options.nix')
-rw-r--r--nixos/modules/virtualisation/amazon-options.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/amazon-options.nix b/nixos/modules/virtualisation/amazon-options.nix
new file mode 100644
index 00000000000..34a50dcab16
--- /dev/null
+++ b/nixos/modules/virtualisation/amazon-options.nix
@@ -0,0 +1,16 @@
+{ config, lib, pkgs, ... }:
+{
+  options = {
+    ec2 = {
+      hvm = lib.mkOption {
+        default = false;
+        internal = true;
+        description = ''
+          Whether the EC2 instance is a HVM instance.
+        '';
+      };
+    };
+  };
+
+  config = {};
+}