summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2022-03-18 13:51:49 +0100
committertv <tv@krebsco.de>2022-03-18 16:17:44 +0100
commitf063c85ed03c9a9c6b2cd6f916da3e37a26facda (patch)
tree8423470c0abbbac0b7e168e4014561a212810d4d /krebs/3modules
parente008a493e0fc0d0418fdc703535e473d6f089d04 (diff)
tv: allow hosts without nets
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/tv/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/krebs/3modules/tv/default.nix b/krebs/3modules/tv/default.nix
index 132a3c4b..615ac7ea 100644
--- a/krebs/3modules/tv/default.nix
+++ b/krebs/3modules/tv/default.nix
@@ -7,7 +7,7 @@ with import <stockholm/lib>;
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;