Open MartinPotier opened 6 years ago
It's possible to workaround this by doing this:
{
networking.extraHosts = "${nodes."NODE NAME".config.networking.privateIPv4} ALIAS";
}
+1 and a bump for 2021. It would be nice to get this for free.
Actually, to co-opt this a bit, it doesn't seem like nixops is adding the other machines to /etc/hosts
at all... is that really supposed to be a feature?
nixops generates an
/etc/hosts
referring to all machines by IP. That'd be usefull, in the case of virtualbox instances at least, to be able to declare extra aliases. Using the following fragment:would generate the following
/etc/hosts
onmachineName
:Doing so could relieve users from installing and running a local DNS server for the task.