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