NixOS-Config/modules/system/devices/networking/firewall/pc/default.nix
2024-10-15 02:40:43 -04:00

10 lines
203 B
Nix

{ config, ... }:
{
networking.firewall = {
allowPing = false;
extraInputRules = ''
ip saddr { ${config.ips.server}, ${config.ips.wgSpan}.1 } accept comment "Accept Server"
'';
};
}