add tailscale

This commit is contained in:
Hadi
2024-06-18 14:05:14 +02:00
committed by GitHub
parent d311675fe9
commit 8ec108927c
5 changed files with 23 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
{config, ...}:{
services.tailscale = {
enable = true;
useRoutingFeatures = "both";
authKeyFile = "/etc/tailscale/authKey";
openFirewall = true;
extraUpFlags = [ "--advertise-exit-node" ];
};
# Fix DNS & IPv6 bugs
networking.nftables.enable = true;
services.resolved.enable = true;
}