1{ pkgs, lib, ... }:
2{
3 name = "transfer-sh";
4
5 meta = {
6 maintainers = with lib.maintainers; [ ocfox ];
7 };
8
9 nodes.machine =
10 { pkgs, ... }:
11 {
12 services.transfer-sh = {
13 enable = true;
14 settings.LISTENER = ":1234";
15 };
16 };
17
18 testScript = ''
19 machine.wait_for_unit("transfer-sh.service")
20 machine.wait_for_open_port(1234)
21 machine.succeed("curl --fail http://localhost:1234/")
22 '';
23}