forked from c3d2/nix-config
Prefer ipv4 for deployment again
This commit is contained in:
parent
9c091ec901
commit
3632d4291e
|
@ -146,10 +146,10 @@
|
|||
let
|
||||
hostConf = hostRegistry.hosts."${name}";
|
||||
in
|
||||
if hostConf ? ip6
|
||||
then hostConf.ip6
|
||||
else if hostConf ? ip4
|
||||
if hostConf ? ip4
|
||||
then hostConf.ip4
|
||||
else if hostConf ? ip6
|
||||
then hostConf.ip6
|
||||
else throw "Host ${name} has no ip4 or ip6 address";
|
||||
in {
|
||||
overlay = import ./overlay {
|
||||
|
|
Loading…
Reference in New Issue