about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authormaxine <35892750+amaxine@users.noreply.github.com>2024-01-24 22:48:01 +0100
committerGitHub <noreply@github.com>2024-01-24 22:48:01 +0100
commitfa1f4ab8c3ebb991b3247a158e88805e890b9442 (patch)
tree51b12ba87ccff4e3e24922e6971b5d30d9d91380 /pkgs
parentb5c8e384c37f2b7bea6b09bfa5ab1d33d0f0ba16 (diff)
parenta04e0bd8a84a45b3a80c9c6528b09590d923ec41 (diff)
Merge pull request #283368 from dotlambda/tailscale-passthru-tests
tailscale: add passthru.tests
Diffstat (limited to 'pkgs')
-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 a5619adb64679..2f36358e912c0 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.2";
@@ -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";