about summary refs log tree commit diff
path: root/pkgs/servers/tailscale/default.nix
diff options
context:
space:
mode:
authorRobert Schütz <nix@dotlambda.de>2024-01-23 18:06:40 -0800
committerRobert Schütz <nix@dotlambda.de>2024-01-23 18:08:41 -0800
commita04e0bd8a84a45b3a80c9c6528b09590d923ec41 (patch)
treeb4907b24ddc85c0e3155464b8ab9ba0df3a9714c /pkgs/servers/tailscale/default.nix
parent612f97239e2cc474c13c9dafa0df378058c5ad8d (diff)
tailscale: add passthru.tests
Diffstat (limited to 'pkgs/servers/tailscale/default.nix')
-rw-r--r--pkgs/servers/tailscale/default.nix17
1 files changed, 16 insertions, 1 deletions
diff --git a/pkgs/servers/tailscale/default.nix b/pkgs/servers/tailscale/default.nix
index 27822f6b89751..4f37d38f021e0 100644
--- a/pkgs/servers/tailscale/default.nix
+++ b/pkgs/servers/tailscale/default.nix
@@ -1,4 +1,15 @@
-{ lib, stdenv, buildGoModule, fetchFromGitHub, makeWrapper, iptables, iproute2, procps, shadow, getent }:
+{ lib
+, stdenv
+, buildGoModule
+, fetchFromGitHub
+, makeWrapper
+, getent
+, iproute2
+, iptables
+, shadow
+, procps
+, nixosTests
+}:
 
 let
   version = "1.58.0";
@@ -38,6 +49,10 @@ buildGoModule {
     install -D -m0444 -t $out/lib/systemd/system ./cmd/tailscaled/tailscaled.service
   '';
 
+  passthru.tests = {
+    inherit (nixosTests) headscale;
+  };
+
   meta = with lib; {
     homepage = "https://tailscale.com";
     description = "The node agent for Tailscale, a mesh VPN built on WireGuard";