blob: 21f471aac9942b74045c4647ee177b10a9f545a9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{ config, ... }:
{
networking.firewall.trustedInterfaces = [ "${config.services.tailscale.interfaceName}" ];
services.tailscale = {
enable = true;
useRoutingFeatures = "both";
};
# <https://tailscale.com/kb/1019/subnets/?tab=linux#step-1-install-the-tailscale-client>
boot.kernel.sysctl = {
"net.ipv4.ip_forward" = true;
"net.ipv6.conf.all.forwarding" = true;
};
}
|