Tailscale — Tag Management Extensions
Purpose
Extensions to the standard NixOS Tailscale module, providing easier tag management.
Entry Point
- Main file: tailscale.nix
Options
services.tailscale.tags
| Type | list of string |
| Default | [ ] |
Additional tags to advertise for this device.
Tags are used for access control and routing in Tailscale. See https://tailscale.com/kb/1018/tags/ for more information.
Architecture / Services / Scope
This module extends the standard NixOS services.tailscale module by automatically constructing the --advertise-tags flag from the configured services.tailscale.tags list.
Operational Notes / Assumptions
- Ensure the device has the necessary permissions in your Tailscale ACLs to apply the requested tags.
Usage Example
{ ... }: {
services.tailscale = {
enable = true;
tags = [ "server" "internal" ];
};
}