diff --git a/flake.nix b/flake.nix index c33c6528..c3f5fd9c 100644 --- a/flake.nix +++ b/flake.nix @@ -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 {