1 import ./make-test-python.nix ({ pkgs, ... }:
5 meta.maintainers = with pkgs.lib.maintainers; [ izorkin ];
8 client_wsdd = { pkgs, ... }: {
9 services.samba-wsdd = {
12 workgroup = "WORKGROUP";
13 hostname = "CLIENT-WSDD";
15 extraOptions = [ "--no-host" ];
17 networking.firewall.allowedTCPPorts = [ 5357 ];
18 networking.firewall.allowedUDPPorts = [ 3702 ];
21 server_wsdd = { ... }: {
22 services.samba-wsdd = {
25 workgroup = "WORKGROUP";
26 hostname = "SERVER-WSDD";
28 networking.firewall.allowedTCPPorts = [ 5357 ];
29 networking.firewall.allowedUDPPorts = [ 3702 ];
35 client_wsdd.wait_for_unit("samba-wsdd")
38 server_wsdd.wait_for_unit("samba-wsdd")
40 client_wsdd.wait_until_succeeds(
41 "echo list | ${pkgs.libressl.nc}/bin/nc -N -U /run/wsdd/wsdd.sock | grep -i SERVER-WSDD"