nixos/openstackImage: default hostname is empty string

This is to let the `ec2-data.nix` module sets the hostname from the
metadata API value.
This commit is contained in:
Antoine Eiche 2019-01-28 21:06:24 +01:00
parent d190b204f0
commit 78acac050f

View File

@ -29,6 +29,9 @@ with lib;
passwordAuthentication = mkDefault false; passwordAuthentication = mkDefault false;
}; };
# Force getting the hostname from Openstack metadata.
networking.hostName = mkDefault "";
systemd.services.openstack-init = { systemd.services.openstack-init = {
path = [ pkgs.wget ]; path = [ pkgs.wget ];
description = "Fetch Metadata on startup"; description = "Fetch Metadata on startup";