Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
28 lines
547 B
Nix
28 lines
547 B
Nix
import ./make-test-python.nix ({ pkgs, lib, ... }:
|
|
let
|
|
httpPort = 800;
|
|
in
|
|
{
|
|
name = "deconz";
|
|
|
|
meta.maintainers = with lib.maintainers; [
|
|
bjornfor
|
|
];
|
|
|
|
nodes.machine = { config, pkgs, lib, ... }: {
|
|
nixpkgs.config.allowUnfree = true;
|
|
services.deconz = {
|
|
enable = true;
|
|
inherit httpPort;
|
|
extraArgs = [
|
|
"--dbg-err=2"
|
|
"--dbg-info=2"
|
|
];
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("deconz.service")
|
|
machine.succeed("curl -sfL http://localhost:${toString httpPort}")
|
|
'';
|
|
})
|