forked from mirrors/nixpkgs
In a test VM it's impossible to connect to itself, so fix this
This commit is contained in:
parent
6eb740191f
commit
8d29cb2b00
|
@ -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"));
|
||||
|
||||
|
|
Loading…
Reference in a new issue