1{ lib, ... }:
2
3{
4 name = "komga";
5 meta.maintainers = with lib.maintainers; [ govanify ];
6
7 nodes.machine =
8 { pkgs, ... }:
9 {
10 services.komga = {
11 enable = true;
12 settings.server.port = 1234;
13 };
14 };
15
16 testScript = ''
17 machine.wait_for_unit("komga.service")
18 machine.wait_for_open_port(1234)
19 machine.succeed("curl --fail http://localhost:1234/")
20 '';
21}