1{ pkgs, lib, ... }:
2{
3 name = "openvscode-server";
4
5 nodes = {
6 machine =
7 { pkgs, ... }:
8 {
9 services.openvscode-server = {
10 enable = true;
11 withoutConnectionToken = true;
12 };
13 };
14 };
15
16 testScript = ''
17 start_all()
18 machine.wait_for_unit("openvscode-server.service")
19 machine.wait_for_open_port(3000)
20 machine.succeed("curl -k --fail http://localhost:3000", timeout=10)
21 '';
22
23 meta.maintainers = [ ];
24}