2025-05-24 23:40:23 +08:00
|
|
|
{ lib, ... }:
|
2019-01-24 23:09:42 +01:00
|
|
|
|
2025-05-24 23:40:23 +08:00
|
|
|
{
|
|
|
|
name = "lidarr";
|
|
|
|
meta.maintainers = with lib.maintainers; [ etu ];
|
2019-01-24 23:09:42 +01:00
|
|
|
|
2025-05-24 23:40:23 +08:00
|
|
|
nodes.machine =
|
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
services.lidarr.enable = true;
|
|
|
|
};
|
2019-01-24 23:09:42 +01:00
|
|
|
|
2025-05-24 23:40:23 +08:00
|
|
|
testScript = ''
|
|
|
|
start_all()
|
2019-12-15 15:46:22 +01:00
|
|
|
|
2025-05-24 23:40:23 +08:00
|
|
|
machine.wait_for_unit("lidarr.service")
|
|
|
|
machine.wait_for_open_port(8686)
|
|
|
|
machine.succeed("curl --fail http://localhost:8686/")
|
|
|
|
'';
|
|
|
|
}
|