config-new/modules/linux/tailscale.nix
2025-05-24 15:38:19 +02:00

17 lines
592 B
Nix

{ config, ... }: {
age.secrets.tailscaleMarshall.file = ./tailscale-marshall.age;
services.tailscale = {
enable = true;
interfaceName = "tailscale0";
useRoutingFeatures = "both";
openFirewall = true; # or false?
extraUpFlags = [ "--ssh" ];
extraSetFlags = [ "--advertise-exit-node" ];
disableTaildrop = false;
authKeyFile = config.age.secrets.tailscaleMarshall.path;
};
networking.nameservers = [ "100.100.100.100" "8.8.8.8" "1.1.1.1" ];
networking.search = [ "shorthair-wall.ts.net" ];
networking.firewall.trustedInterfaces = [ "tailscale0" ];
}