1{ lib, ... }:
2{
3 name = "snips-sh";
4
5 nodes.machine = {
6 services.snips-sh = {
7 enable = true;
8 settings = {
9 SNIPS_HTTP_INTERNAL = "http://0.0.0.0:8080";
10 SNIPS_SSH_INTERNAL = "ssh://0.0.0.0:2222";
11 };
12 };
13 };
14
15 testScript = ''
16 start_all()
17
18 machine.wait_for_unit("snips-sh.service")
19 machine.wait_for_open_port(8080)
20 machine.succeed("curl --fail http://localhost:8080")
21 '';
22
23 meta.maintainers = with lib.maintainers; [
24 isabelroses
25 NotAShelf
26 ];
27}