Tailscale: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
== Basic setup == | |||
To enable Tailscale, add the following to your configuration: | |||
{{File|3={ | |||
services.tailscale = { | |||
enable = true; | |||
# Enable tailscale at startup | |||
# If you would like to use a preauthorized key | |||
#authKeyFile = "/run/secrets/tailscale_key"; | |||
== | }; | ||
}|name=/etc/nixos/configuration.nix|lang=nix}} | |||
After enabling Tailscale, create an account and login at https://login.tailscale.com (or self-host a compatible [https://github.com/juanfont/headscale Headscale] service; also available in NixOS). | |||
If you are using features like subnet routers or exit nodes you will also need to set <code><nowiki>services.tailscale.useRoutingFeatures</nowiki></code> to "server", "client" or "both" depending on the role of your machine. | If you are using features like subnet routers or exit nodes you will also need to set <code><nowiki>services.tailscale.useRoutingFeatures</nowiki></code> to "server", "client" or "both" depending on the role of your machine. | ||
For more configuration option, refer to [Https://search.nixos.org/options?show=services.tailscale services.tailscale]. | |||
== Split DNS == | == Split DNS == | ||