nixos configs
1{ config, pkgs, ... }:
2{
3 services.tailscale = {
4 enable = true;
5 useRoutingFeatures = "client";
6 };
7
8 # Required for Tailscale
9 networking.firewall = {
10 checkReversePath = "loose";
11 trustedInterfaces = [ "tailscale0" ];
12 allowedUDPPorts = [ config.services.tailscale.port ];
13 };
14}