mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
24 lines
550 B
Nix
24 lines
550 B
Nix
|
import ./make-test-python.nix ({ lib, ...}:
|
||
|
|
||
|
{
|
||
|
name = "zoneminder";
|
||
|
meta.maintainers = with lib.maintainers; [ danielfullmer ];
|
||
|
|
||
|
machine = { ... }:
|
||
|
{
|
||
|
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/")
|
||
|
'';
|
||
|
})
|