12 src = fetchFromGitHub {
16 hash = "sha256-nqmTqe3F3Oh8rnJH0clwACD/0RpqmfOMXNubr3C8rEc=";
19 vendorHash = "sha256-IOkbbFtE6+tNKnglE/8ZuNxhPSnloqM2sLgTvagMmnc=";
22 # backport of https://github.com/juanfont/headscale/pull/1697
23 ./trim-oidc-secret-path.patch
26 ldflags = ["-s" "-w" "-X github.com/juanfont/headscale/cmd/headscale/cli.Version=v${version}"];
28 nativeBuildInputs = [installShellFiles];
29 checkFlags = ["-short"];
34 installShellCompletion --cmd headscale \
35 --bash <($out/bin/headscale completion bash) \
36 --fish <($out/bin/headscale completion fish) \
37 --zsh <($out/bin/headscale completion zsh)
40 passthru.tests = { inherit (nixosTests) headscale; };
43 homepage = "https://github.com/juanfont/headscale";
44 description = "Open source, self-hosted implementation of the Tailscale control server";
46 Tailscale is a modern VPN built on top of Wireguard. It works like an
47 overlay network between the computers of your networks - using all kinds
48 of NAT traversal sorcery.
50 Everything in Tailscale is Open Source, except the GUI clients for
51 proprietary OS (Windows and macOS/iOS), and the
52 'coordination/control server'.
54 The control server works as an exchange point of Wireguard public keys for
55 the nodes in the Tailscale network. It also assigns the IP addresses of
56 the clients, creates the boundaries between each user, enables sharing
57 machines between users, and exposes the advertised routes of your nodes.
59 Headscale implements this coordination server.
61 license = licenses.bsd3;
62 maintainers = with maintainers; [nkje jk kradalby misterio77 ghuntley];