From af228e3b2c1642a94a3c88ef4445da5cfacc1afb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 27 Dec 2022 00:59:45 +0100 Subject: [PATCH] Fix or fallback --- packages.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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