tv: allow hosts without nets

This commit is contained in:
tv 2022-03-18 13:51:49 +01:00
parent e008a493e0
commit f063c85ed0

View File

@ -7,7 +7,7 @@ with import <stockholm/lib>;
name = hostName; name = hostName;
owner = config.krebs.users.tv; owner = config.krebs.users.tv;
} }
(optionalAttrs (hostConfig.nets?retiolum) { (optionalAttrs (hasAttrByPath ["nets" "retiolum"] hostConfig) {
nets.retiolum = { nets.retiolum = {
ip6.addr = ip6.addr =
(krebs.genipv6 "retiolum" "tv" { inherit hostName; }).address; (krebs.genipv6 "retiolum" "tv" { inherit hostName; }).address;