1{ lib, pkgs, ... }:
2
3{
4 name = "yarr";
5 meta.maintainers = with lib.maintainers; [ christoph-heiss ];
6
7 nodes.machine =
8 { pkgs, ... }:
9 {
10 services.yarr.enable = true;
11 };
12
13 testScript = ''
14 machine.start()
15 machine.wait_for_unit("yarr.service")
16 machine.wait_for_open_port(7070)
17 machine.succeed("curl -sSf http://localhost:7070 | grep '<title>yarr!</title>'")
18 '';
19}