From f063c85ed03c9a9c6b2cd6f916da3e37a26facda Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 18 Mar 2022 13:51:49 +0100 Subject: [PATCH] tv: allow hosts without nets --- krebs/3modules/tv/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/krebs/3modules/tv/default.nix b/krebs/3modules/tv/default.nix index 132a3c4be..615ac7ea2 100644 --- a/krebs/3modules/tv/default.nix +++ b/krebs/3modules/tv/default.nix @@ -7,7 +7,7 @@ with import ; name = hostName; owner = config.krebs.users.tv; } - (optionalAttrs (hostConfig.nets?retiolum) { + (optionalAttrs (hasAttrByPath ["nets" "retiolum"] hostConfig) { nets.retiolum = { ip6.addr = (krebs.genipv6 "retiolum" "tv" { inherit hostName; }).address;