nix: add a NixOS test kit for Tailscale clients

nixosModules.testkit makes a node a control server every client joins without
trust setup; testkit-peer joins it with hs-join.
This commit is contained in:
Kristoffer Dalby
2026-09-28 13:36:45 +00:00
committed by Kristoffer Dalby
parent 35a90e0018
commit 200c2c01e8
6 changed files with 297 additions and 1 deletions
+6 -1
View File
@@ -25,8 +25,13 @@
{
# NixOS module
nixosModules = rec {
headscale = import ./nix/module.nix;
# A path, so importing it twice (directly and via testkit) dedupes.
headscale = ./nix/module.nix;
default = headscale;
# Control node for NixOS VM tests of Tailscale clients, and a peer
# that joins it; nix/README.md.
testkit = import ./nix/testkit.nix self;
testkit-peer = ./nix/testkit-peer.nix;
};
overlays.default =