nixpkgs/nixos/tests/deconz.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
511 B
Nix
Raw Permalink Normal View History

2025-05-28 11:47:24 +08:00
{ lib, ... }:
let
httpPort = 800;
in
{
name = "deconz";
2023-09-17 20:04:28 +02:00
meta.maintainers = with lib.maintainers; [
bjornfor
];
2023-09-17 20:04:28 +02:00
2025-05-28 11:47:24 +08:00
node.pkgsReadOnly = false;
nodes.machine = {
nixpkgs.config.allowUnfree = true;
services.deconz = {
enable = true;
inherit httpPort;
extraArgs = [
"--dbg-err=2"
"--dbg-info=2"
];
};
2025-05-28 11:47:24 +08:00
};
2023-09-17 20:04:28 +02:00
testScript = ''
machine.wait_for_unit("deconz.service")
machine.succeed("curl -sfL http://localhost:${toString httpPort}")
'';
}