Fix or fallback
This commit is contained in:
parent
ae3e6270bb
commit
af228e3b2c
|
@ -3,9 +3,9 @@
|
|||
let
|
||||
getHostAddr = name:
|
||||
let
|
||||
hostConf = hostRegistry."${name}";
|
||||
hostConf = hostRegistry."${name}" or (throw "Host ${name} has no ip4 or ip6 address");
|
||||
in
|
||||
hostConf.ip4 or (hostConf.ip6 or (throw "Host ${name} has no ip4 or ip6 address"));
|
||||
hostConf.ip4 or hostConf.ip6;
|
||||
|
||||
# all the input flakes for `nix copy` to the build machine,
|
||||
# allowing --override-input
|
||||
|
|
Loading…
Reference in New Issue