1
0
forked from c3d2/nix-config

Prefer IPv6 when deploying

This commit is contained in:
Sandro - 2022-06-18 13:36:36 +02:00
parent ad45264a77
commit ed59730eed
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -122,10 +122,10 @@
let
hostConf = hostRegistry.hosts."${name}";
in
if hostConf ? ip4
then hostConf.ip4
else if hostConf ? ip6
if hostConf ? ip6
then hostConf.ip6
else if hostConf ? ip4
then hostConf.ip4
else throw "Host ${name} has no ip4 or ip6 address";
in {
overlay = import ./overlay;