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"));