add tailscale
This commit is contained in:
14
hosts/modules/server/tailscale.nix
Normal file
14
hosts/modules/server/tailscale.nix
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user