summary refs log tree commit diff
path: root/nixos/tests/jellyfin.nix
blob: 65360624d4875f5b5d34d350fe03b95b353a40ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import ./make-test-python.nix ({ lib, ...}:

{
  name = "jellyfin";
  meta.maintainers = with lib.maintainers; [ minijackson ];

  machine =
    { ... }:
    { services.jellyfin.enable = true; };

  testScript = ''
    machine.wait_for_unit("jellyfin.service")
    machine.wait_for_open_port(8096)
    machine.succeed("curl --fail http://localhost:8096/")
  '';
})