NixOS-Config/system/desktop/firewall.nix
2024-09-23 16:22:01 -04:00

13 lines
273 B
Nix

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