-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
179 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
services.tailscale = { | ||
enable = true; | ||
useRoutingFeatures = "client"; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
lib, | ||
buildGo122Module, | ||
fetchFromGitHub, | ||
installShellFiles, | ||
nixosTests, | ||
}: | ||
buildGo122Module rec { | ||
pname = "headscale"; | ||
version = "0.23.0-alpha12"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "juanfont"; | ||
repo = "headscale"; | ||
rev = "v${version}"; | ||
hash = "sha256-kZZK0cXnFARxblSMz01TDcBbTorkHGAwGpR+a4/mYfU="; | ||
}; | ||
|
||
vendorHash = "sha256-EorT2AVwA3usly/LcNor6r5UIhLCdj3L4O4ilgTIC2o="; | ||
|
||
ldflags = ["-s" "-w" "-X github.com/juanfont/headscale/cmd/headscale/cli.Version=v${version}"]; | ||
|
||
nativeBuildInputs = [installShellFiles]; | ||
checkFlags = ["-short"]; | ||
|
||
subPackages = ["cmd/headscale"]; | ||
tags = ["ts2019"]; | ||
|
||
postInstall = '' | ||
installShellCompletion --cmd headscale \ | ||
--bash <($out/bin/headscale completion bash) \ | ||
--fish <($out/bin/headscale completion fish) \ | ||
--zsh <($out/bin/headscale completion zsh) | ||
''; | ||
|
||
passthru.tests = {inherit (nixosTests) headscale;}; | ||
|
||
meta = with lib; { | ||
homepage = "https://github.com/juanfont/headscale"; | ||
description = "Open source, self-hosted implementation of the Tailscale control server"; | ||
longDescription = '' | ||
Tailscale is a modern VPN built on top of Wireguard. It works like an | ||
overlay network between the computers of your networks - using all kinds | ||
of NAT traversal sorcery. | ||
Everything in Tailscale is Open Source, except the GUI clients for | ||
proprietary OS (Windows and macOS/iOS), and the | ||
'coordination/control server'. | ||
The control server works as an exchange point of Wireguard public keys for | ||
the nodes in the Tailscale network. It also assigns the IP addresses of | ||
the clients, creates the boundaries between each user, enables sharing | ||
machines between users, and exposes the advertised routes of your nodes. | ||
Headscale implements this coordination server. | ||
''; | ||
license = licenses.bsd3; | ||
maintainers = with maintainers; [nkje jk kradalby misterio77 ghuntley]; | ||
}; | ||
} |