added ip forwarding rules for tailscale exit nodes

This commit is contained in:
Nickiel12 2023-08-07 15:35:21 -07:00
parent 1c0f757ac5
commit 7cd64e5465

View file

@ -4,6 +4,8 @@ let
baseDomain = "nickiel.net";
domain = "headscale.${baseDomain}";
in {
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = 1;
# https://carjorvaz.com/posts/setting-up-headscale-on-nixos/
services.headscale = {
enable = true;