mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 22:51:22 +00:00
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).
|
# virtualisation.vlans option).
|
||||||
networking.extraHosts = flip concatMapStrings machines
|
networking.extraHosts = flip concatMapStrings machines
|
||||||
(m': let config = (getAttr m' nodes).config; in
|
(m': let config = (getAttr m' nodes).config; in
|
||||||
optionalString (m.first != m' && config.networking.primaryIPAddress != "")
|
optionalString (config.networking.primaryIPAddress != "")
|
||||||
("${config.networking.primaryIPAddress} " +
|
("${config.networking.primaryIPAddress} " +
|
||||||
"${config.networking.hostName}\n"));
|
"${config.networking.hostName}\n"));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user