forked from c3d2/nix-config
Prefer IPv6 when deploying
This commit is contained in:
parent
ad45264a77
commit
ed59730eed
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user