Files
nix-config/modules/network/tailscale.org
T
phundrak ba018ef841 refactor: change to litterate config
Configuration is now held by the `.org` files. All `.nix` files are
tangled from the org-mode files.
2026-10-06 12:40:58 +02:00

1.3 KiB
Raw Blame History

Tailscale

Tailscale

I use Tailscale as the mesh VPN tying all my machines together. Here’s the nixos.tailscale module.

{
  flake.modules.nixos.tailscale = {
    services.tailscale = {
      <<enable>>
      <<extra-flags>>
    };
  };
}

Enabling Tailscale

enable = true;

Extra Flags

I add some extra flags for Tailscale.

Flag Why
--accept-dns Turns on MagicDNS
--accept-routes Let this machine use subnets advertised by other nodes
--ssh Turns on Tailscale’s own SSH server for easy SSH access
"--accept-dns"
"--accept-routes"
"--ssh"
extraSetFlags = [
  <<make-flags()>>
];