1{ pkgs, ... }:
2{
3 name = "coder";
4 meta.maintainers = pkgs.coder.meta.maintainers;
5
6 nodes.machine =
7 { pkgs, ... }:
8 {
9 services.coder = {
10 enable = true;
11 accessUrl = "http://localhost:3000";
12 };
13 };
14
15 testScript = ''
16 machine.start()
17 machine.wait_for_unit("postgresql.target")
18 machine.wait_for_unit("coder.service")
19 machine.wait_for_open_port(3000)
20
21 machine.succeed("curl --fail http://localhost:3000")
22 '';
23}