3
0
Fork 0
forked from mirrors/nixpkgs

In a test VM it's impossible to connect to itself, so fix this

This commit is contained in:
Sander van der Burg 2015-02-19 21:13:49 +00:00
parent 6eb740191f
commit 8d29cb2b00

View file

@ -70,7 +70,7 @@ rec {
# virtualisation.vlans option).
networking.extraHosts = flip concatMapStrings machines
(m': let config = (getAttr m' nodes).config; in
optionalString (m.first != m' && config.networking.primaryIPAddress != "")
optionalString (config.networking.primaryIPAddress != "")
("${config.networking.primaryIPAddress} " +
"${config.networking.hostName}\n"));