From 78acac050ff27eb45332095935ab112de31d065d Mon Sep 17 00:00:00 2001 From: Antoine Eiche Date: Mon, 28 Jan 2019 21:06:24 +0100 Subject: [PATCH] nixos/openstackImage: default hostname is empty string This is to let the `ec2-data.nix` module sets the hostname from the metadata API value. --- nixos/modules/virtualisation/openstack-config.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/virtualisation/openstack-config.nix b/nixos/modules/virtualisation/openstack-config.nix index 7f4799d1719a..9d8f2ac245d6 100644 --- a/nixos/modules/virtualisation/openstack-config.nix +++ b/nixos/modules/virtualisation/openstack-config.nix @@ -29,6 +29,9 @@ with lib; passwordAuthentication = mkDefault false; }; + # Force getting the hostname from Openstack metadata. + networking.hostName = mkDefault ""; + systemd.services.openstack-init = { path = [ pkgs.wget ]; description = "Fetch Metadata on startup";