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";