NixOS-Config/system/desktop/firewall.nix

15 lines
284 B
Nix
Raw Normal View History

let
ips = import ../modules/ips.nix;
in {
2024-08-24 22:16:51 -04:00
# Networking settings
networking = {
# Enable firewall
firewall = {
allowPing = false;
extraInputRules = ''
ip saddr { ${ips.server}, ${ips.wgSpan}.1 } accept comment "Accept Server"
2024-08-24 22:16:51 -04:00
'';
};
};
}