mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
571780384a
This commit upgrades headscale to the newest version, 0.17.0 and updates the module with the current breaking config changes. In addition, the module is rewritten to conform with RFC0042 to try to prevent some drift between the module and the upstream. A new maintainer, Misterio77, is added as maintainer. Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> Co-authored-by: Gabriel Fontes <hi@m7.rs> Co-authored-by: Geoffrey Huntley <ghuntley@ghuntley.com>
18 lines
510 B
Nix
18 lines
510 B
Nix
import ./make-test-python.nix ({ pkgs, lib, ... }: {
|
|
name = "headscale";
|
|
meta.maintainers = with lib.maintainers; [ misterio77 ];
|
|
|
|
nodes.machine = { ... }: {
|
|
services.headscale.enable = true;
|
|
environment.systemPackages = [ pkgs.headscale ];
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("headscale")
|
|
machine.wait_for_open_port(8080)
|
|
# Test basic funcionality
|
|
machine.succeed("headscale namespaces create test")
|
|
machine.succeed("headscale preauthkeys -n test create")
|
|
'';
|
|
})
|