2025-05-24 23:40:23 +08:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
name = "transfer-sh";
|
2024-01-25 12:23:53 +08:00
|
|
|
|
2025-05-24 23:40:23 +08:00
|
|
|
meta = {
|
|
|
|
maintainers = with lib.maintainers; [ ocfox ];
|
|
|
|
};
|
2024-01-25 12:23:53 +08:00
|
|
|
|
2025-05-24 23:40:23 +08:00
|
|
|
nodes.machine =
|
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
services.transfer-sh = {
|
|
|
|
enable = true;
|
|
|
|
settings.LISTENER = ":1234";
|
2024-12-10 20:26:33 +01:00
|
|
|
};
|
2025-05-24 23:40:23 +08:00
|
|
|
};
|
2024-12-10 20:26:33 +01:00
|
|
|
|
2025-05-24 23:40:23 +08:00
|
|
|
testScript = ''
|
|
|
|
machine.wait_for_unit("transfer-sh.service")
|
|
|
|
machine.wait_for_open_port(1234)
|
|
|
|
machine.succeed("curl --fail http://localhost:1234/")
|
|
|
|
'';
|
|
|
|
}
|