[Nix-dev] nixops logical network values depend on physical network deployed to

Rob Vermaas rob.vermaas at gmail.com
Sun Jun 14 11:53:21 CEST 2015


Hi Richard,

I have a case where a value in my logical network configuration will be
> different depending on what physical network is deployed to. It's the base
> URI of the web service, which will be http://localhost:8080/ when
> deploying to a local virtualbox instance and the public address otherwise.
>

You can use config.networking.publicIPv4 [1] option to get the public IP
address of the nixops machine. This is set by nixops.

Cheers,
Rob

[1] http://nixos.org/nixops/manual/#opt-networking.publicIPv4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150614/b49a106f/attachment.html 


More information about the nix-dev mailing list