at master 421 B view raw
1{ lib, ... }: 2let 3 port = 6000; 4in 5{ 6 name = "gokapi"; 7 8 meta.maintainers = with lib.maintainers; [ delliott ]; 9 10 nodes.machine = { 11 services.gokapi = { 12 enable = true; 13 environment.GOKAPI_PORT = port; 14 }; 15 }; 16 17 testScript = '' 18 machine.wait_for_unit("gokapi.service") 19 machine.wait_for_open_port(${toString port}) 20 machine.succeed("curl --fail http://localhost:${toString port}/") 21 ''; 22}