nixosTests.netbird: init

Changed files
+24
nixos
pkgs
tools
networking
netbird
+1
nixos/tests/all-tests.nix
···
ncdns = handleTest ./ncdns.nix {};
ndppd = handleTest ./ndppd.nix {};
nebula = handleTest ./nebula.nix {};
+
netbird = handleTest ./netbird.nix {};
neo4j = handleTest ./neo4j.nix {};
netdata = handleTest ./netdata.nix {};
networking.networkd = handleTest ./networking.nix { networkd = true; };
+21
nixos/tests/netbird.nix
···
+
import ./make-test-python.nix ({ pkgs, lib, ... }:
+
{
+
name = "netbird";
+
+
meta = with pkgs.lib.maintainers; {
+
maintainers = [ misuzu ];
+
};
+
+
nodes = {
+
node = { ... }: {
+
services.netbird.enable = true;
+
};
+
};
+
+
testScript = ''
+
start_all()
+
node.wait_for_unit("netbird.service")
+
node.wait_for_file("/var/run/netbird/sock")
+
node.succeed("netbird status | grep -q 'Daemon status: NeedsLogin'")
+
'';
+
})
+2
pkgs/tools/networking/netbird/default.nix
···
--replace "Exec=/usr/bin/netbird-ui" "Exec=$out/bin/netbird-ui"
'';
+
passthru.tests.netbird = nixosTests.netbird;
+
meta = with lib; {
homepage = "https://netbird.io";
description = "Connect your devices into a single secure private WireGuard®-based mesh network with SSO/MFA and simple access controls";