1import ./make-test-python.nix ({ pkgs, lib, ... }:
2let
3 httpPort = 800;
4in
5{
6 name = "deconz";
7
8 meta.maintainers = with lib.maintainers; [
9 bjornfor
10 ];
11
12 nodes.machine = { config, pkgs, lib, ... }: {
13 nixpkgs.config.allowUnfree = true;
14 services.deconz = {
15 enable = true;
16 inherit httpPort;
17 extraArgs = [
18 "--dbg-err=2"
19 "--dbg-info=2"
20 ];
21 };
22 };
23
24 testScript = ''
25 machine.wait_for_unit("deconz.service")
26 machine.succeed("curl -sfL http://localhost:${toString httpPort}")
27 '';
28})