2020-05-29 06:06:01 +00:00
|
|
|
import ./make-test-python.nix ({ lib, ...}:
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "zoneminder";
|
|
|
|
meta.maintainers = with lib.maintainers; [ danielfullmer ];
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nodes.machine = { ... }:
|
2020-05-29 06:06:01 +00:00
|
|
|
{
|
|
|
|
services.zoneminder = {
|
|
|
|
enable = true;
|
|
|
|
database.createLocally = true;
|
|
|
|
database.username = "zoneminder";
|
|
|
|
};
|
|
|
|
time.timeZone = "America/New_York";
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
machine.wait_for_unit("zoneminder.service")
|
|
|
|
machine.wait_for_unit("nginx.service")
|
|
|
|
machine.wait_for_open_port(8095)
|
|
|
|
machine.succeed("curl --fail http://localhost:8095/")
|
|
|
|
'';
|
|
|
|
})
|