move modules from nodes.nix to mapping.nix

This commit is contained in:
asyncnomi 2025-07-24 21:22:14 +02:00
parent 4df3c2678d
commit 5103243bfd
5 changed files with 32 additions and 92 deletions

View file

@ -48,7 +48,7 @@ in
# Mesh
udp dport 51820 accept
${if lib.elem myName mapping.bastion then ''
${if lib.elem myName mapping.bastion.hosts then ''
# Mgmt
udp dport 51920 accept
'' else ""}
@ -64,7 +64,7 @@ in
ct state related,established accept
ct state invalid counter drop
${if lib.elem myName mapping.bastion then ''
${if lib.elem myName mapping.bastion.hosts then ''
iifname mgmt oifname mesh* accept
'' else ""}