From b7afbc20da3d1f8a5d96b798b20db3201bddd98d Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 18 Oct 2021 22:24:08 +0200 Subject: [PATCH] flake.nix: turn pointless getHostAddr result into fatal error --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 520397d1..4cc025ff 100644 --- a/flake.nix +++ b/flake.nix @@ -60,7 +60,7 @@ then hostConf.ip4 else if hostConf ? ip6 then hostConf.ip6 - else null; + else throw "Host ${name} has no ip4 or ip6 address"; in { overlay = import ./overlay;