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