refactor: avahi

This commit is contained in:
arcnmx 2024-01-14 13:33:40 -08:00
parent 42bf19cf47
commit 56e8011300
6 changed files with 36 additions and 12 deletions

View file

@ -7,6 +7,11 @@ NF_HOST=${NF_HOST-tewi}
NIXOS_TOPLEVEL=network.nodes.$NF_HOST.system.build.toplevel
NF_ADDR=${NF_ADDR-${NF_HOST}.local}
if [[ $NF_ADDR = tewi.local ]]; then
# work around homekit namespace clash
NF_ADDR=tewi.local.cutie.moe
fi
if [[ $# -eq 0 ]]; then
set -- ""
fi