Create a folder for test configuration and files:
mkdir headscale-testing
cd headscale-testing
wget -O config.yaml https://github.com/juanfont/headscale/raw/main/config-example.yaml
nix run github:juanfont/headscale#headscale -- serve
In a new window/tmux/session
nix run github:juanfont/headscale#headscale -- namespaces create test
nix run github:juanfont/headscale#headscale -- preauthkeys create --namespace test
Login with Tailscale
tailscale up --force-reauth --login-server=http://localhost:8080 --auth-key <KEY>