added derp to firewall

This commit is contained in:
Nickiel12 2023-11-01 19:59:59 -07:00
parent a7d563b06c
commit bc846c0fea

View file

@ -7,6 +7,10 @@ let
in {
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = 1;
# open for DERP
networking.firewall.allowedUDPPorts = [ 3478 ];
# https://carjorvaz.com/posts/setting-up-headscale-on-nixos/
services.headscale = {
enable = true;