diff --git a/packages.nix b/packages.nix index ebd2d1a6..966833ca 100644 --- a/packages.nix +++ b/packages.nix @@ -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