1{ lib, ... }:
2
3{
4 name = "autobrr";
5 meta.maintainers = with lib.maintainers; [ av-gal ];
6
7 nodes.machine =
8 { pkgs, ... }:
9 {
10 services.autobrr = {
11 enable = true;
12 # We create this secret in the Nix store (making it readable by everyone).
13 # DO NOT DO THIS OUTSIDE OF TESTS!!
14 secretFile = pkgs.writeText "session_secret" "not-secret";
15 };
16 };
17
18 testScript = ''
19 machine.wait_for_unit("autobrr.service")
20 machine.wait_for_open_port(7474)
21 machine.succeed("curl --fail http://localhost:7474/")
22 '';
23}