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;