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