aboutsummaryrefslogtreecommitdiff
path: root/nixos/modules
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/default.nix1
-rw-r--r--nixos/modules/ec2.nix9
2 files changed, 10 insertions, 0 deletions
diff --git a/nixos/modules/default.nix b/nixos/modules/default.nix
index 4469650..c5d40e2 100644
--- a/nixos/modules/default.nix
+++ b/nixos/modules/default.nix
@@ -3,4 +3,5 @@
flake = import ./flake.nix;
nix = import ./nix.nix;
security = import ./security.nix;
+ ec2 = import ./ec2.nix;
}
diff --git a/nixos/modules/ec2.nix b/nixos/modules/ec2.nix
new file mode 100644
index 0000000..45f3cd8
--- /dev/null
+++ b/nixos/modules/ec2.nix
@@ -0,0 +1,9 @@
+{ modulesPath, config, lib, ... }:
+
+{
+ # AWS EC2-specific tweaks
+ imports = [
+ "${modulesPath}/virtualisation/amazon-image.nix"
+ ];
+ ec2.hvm = true;
+}