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