From 8d29cb2b00b9323de407bf512a1bac2e2bcd56dc Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Thu, 19 Feb 2015 21:13:49 +0000 Subject: [PATCH] In a test VM it's impossible to connect to itself, so fix this --- nixos/lib/build-vms.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/lib/build-vms.nix b/nixos/lib/build-vms.nix index 50b3b424166b..d0c9e7c6d236 100644 --- a/nixos/lib/build-vms.nix +++ b/nixos/lib/build-vms.nix @@ -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"));