nix: run the headscale VM test on the test kit

Drops nginx, the cert and dead ip_prefixes. Proves DERP relay and TLS noise
after a restart, and puts nix/module.nix under CI.
This commit is contained in:
Kristoffer Dalby
2026-09-28 13:37:07 +00:00
committed by Kristoffer Dalby
parent 200c2c01e8
commit 00663fbbfe
2 changed files with 60 additions and 93 deletions
+8 -6
View File
@@ -296,12 +296,14 @@
}
);
checks = {
headscale = pkgs.testers.nixosTest (import ./nix/tests/headscale.nix);
}
# The Go build/test checks are gated to Linux: parts of the tree are
# Linux-specific and the pure unit subset is validated by CI.
// pkgs.lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux goChecks;
# Gated to Linux: parts of the tree are Linux-specific, and the VM
# test needs KVM.
checks = pkgs.lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux (
goChecks
// {
headscale = pkgs.testers.runNixOSTest (import ./nix/tests/headscale.nix self);
}
);
}
);
}