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