Headscale
Headscale is an open source, self-hosted implementation of the Tailscale control server.
View the synix NixOS module on Forgejo.
References
Setup
Set a CNAME record for your Headscale subdomain (headscale by default) pointing to your domain.
Config
{
imports = [ inputs.synix.nixosModules.headscale ];
services.headscale = {
enable = true;
openFirewall = true;
};
}
Usage
Create a new user:
Get the user's id:
Create a pre auth key for that user:
Give the user the pre-auth key.
Troubleshooting
Check if your ACL config is valid: