diff options
author | Sander van der Burg <svanderburg@gmail.com> | 2015-02-19 21:13:49 +0000 |
---|---|---|
committer | Sander van der Burg <svanderburg@gmail.com> | 2015-02-19 21:13:49 +0000 |
commit | 8d29cb2b00b9323de407bf512a1bac2e2bcd56dc (patch) | |
tree | 3733ad105ff1752f8021362b2fd702c92e779e47 /nixos/lib | |
parent | 6eb740191ff6bb2c6c0366baeb884d650ea0d5e2 (diff) |
In a test VM it's impossible to connect to itself, so fix this
Diffstat (limited to 'nixos/lib')
-rw-r--r-- | nixos/lib/build-vms.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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")); |