add firewall for non-lighthouse

This commit is contained in:
TheWanderingCrow 2025-08-07 12:00:29 -04:00
parent 403b747449
commit 435d11e9e5

View file

@ -20,5 +20,21 @@ in {
inherit (s.hosts.${config.hostSpec.hostName}) cert isLighthouse;
key = config.sops.secrets."keys/nebula".path;
enable = true;
firewall = lib.mkIf (!config.services.nebula.networks.wce.isLighthouse) {
inbound = [
{
host = "any";
port = "any";
proto = "any";
}
];
outbound = [
{
host = "any";
port = "any";
proto = "any";
}
];
};
};
}