mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
e74d936730
Version 0.19.0 renamed 'namespace' to 'user' https://github.com/juanfont/headscale/blob/main/CHANGELOG.md#0190-2023-01-29
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 -u test create")
|
|
'';
|
|
})
|