Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1002 B
Nix
47 lines
1002 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
name = "samba-wsdd";
|
|
meta.maintainers = with pkgs.lib.maintainers; [ izorkin ];
|
|
|
|
nodes = {
|
|
client_wsdd =
|
|
{ pkgs, ... }:
|
|
{
|
|
services.samba-wsdd = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
interface = "eth1";
|
|
workgroup = "WORKGROUP";
|
|
hostname = "CLIENT-WSDD";
|
|
discovery = true;
|
|
extraOptions = [ "--no-host" ];
|
|
};
|
|
};
|
|
|
|
server_wsdd =
|
|
{ ... }:
|
|
{
|
|
services.samba-wsdd = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
interface = "eth1";
|
|
workgroup = "WORKGROUP";
|
|
hostname = "SERVER-WSDD";
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
client_wsdd.start()
|
|
client_wsdd.wait_for_unit("samba-wsdd")
|
|
|
|
server_wsdd.start()
|
|
server_wsdd.wait_for_unit("samba-wsdd")
|
|
|
|
client_wsdd.wait_until_succeeds(
|
|
"echo list | ${pkgs.libressl.nc}/bin/nc -N -U /run/wsdd/wsdd.sock | grep -i SERVER-WSDD"
|
|
)
|
|
'';
|
|
}
|