mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-18 22:55:52 +05:30
12 lines
314 B
Nix
12 lines
314 B
Nix
{ ... }:
|
|
|
|
{
|
|
# Firewall
|
|
networking.firewall.enable = true;
|
|
# Open ports in the firewall.
|
|
networking.firewall.allowedTCPPorts = [ 22000 21027 ]; # syncthing
|
|
networking.firewall.allowedUDPPorts = [ 22000 21027 ]; # syncthing
|
|
# Or disable the firewall altogether.
|
|
# networking.firewall.enable = false;
|
|
}
|