From 8a0a0efb48adeebd516a3b3cdf407bd9ddcfe10f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 4 Nov 2011 20:06:59 +0000 Subject: [PATCH] * Force getting the hostname from EC2. svn path=/nixos/trunk/; revision=30235 --- modules/virtualisation/amazon-image.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/virtualisation/amazon-image.nix b/modules/virtualisation/amazon-image.nix index 94722bb7911a..7608f4574657 100644 --- a/modules/virtualisation/amazon-image.nix +++ b/modules/virtualisation/amazon-image.nix @@ -133,4 +133,7 @@ with pkgs.lib; # at instance creation time. services.openssh.enable = true; services.openssh.permitRootLogin = "without-password"; + + # Force getting the hostname from EC2. + networking.hostName = mkDefault ""; }