summaryrefslogtreecommitdiffstats
path: root/nixos/tests/komga.nix
blob: 8d3ef130a5cd075cc6a2d83b80dbdbd125907310 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ lib, ... }:

{
  name = "komga";
  meta.maintainers = with lib.maintainers; [ govanify ];

  nodes.machine =
    { pkgs, ... }:
    {
      services.komga = {
        enable = true;
        settings.server.port = 1234;
      };
    };

  testScript = ''
    machine.wait_for_unit("komga.service")
    machine.wait_for_open_port(1234)
    machine.succeed("curl --fail http://localhost:1234/")
  '';
}