feat: add mail

This commit is contained in:
Kat Inskip 2025-11-15 21:14:22 -08:00
parent e6dd6d6a05
commit 2a0b6a2b8e
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
5 changed files with 106 additions and 1 deletions

View file

@ -49,7 +49,7 @@
mkGetAddressFor = nameAllowed: addressForAttr: hostName: network: let
forSystem = access.systemFor hostName;
forSystemHas = network: forSystem.access ? ${addressForAttr}.${network} || forSystem.access ? address4ForNetwork.${network};
err = throw "no interface found between ${config.networking.hostName} -> ${hostName}@${network}";
err = throw "no interface found between ${config.networking.hostName} -> ${hostName}@${network} OR disable promtail and prometheus-node-exporter services";
fallback =
if nameAllowed
then lib.warn "getAddressFor hostname fallback for ${config.networking.hostName} -> ${hostName}@${network}" (access.getHostnameFor hostName network)