Skip to content

Commit

Permalink
Merge pull request #51661 from eonpatapon/testing-hosts
Browse files Browse the repository at this point in the history
test: set machines fqdn in /etc/hosts
  • Loading branch information
infinisil committed Jan 12, 2019
2 parents ad23ea3 + 764f164 commit 497e6f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nixos/lib/build-vms.nix
Expand Up @@ -83,6 +83,8 @@ rec {
(m': let config = (getAttr m' nodes).config; in
optionalString (config.networking.primaryIPAddress != "")
("${config.networking.primaryIPAddress} " +
optionalString (config.networking.domain != null)
"${config.networking.hostName}.${config.networking.domain} " +
"${config.networking.hostName}\n"));

virtualisation.qemu.options =
Expand Down

0 comments on commit 497e6f1

Please sign in to comment.