mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
28 lines
412 B
Nix
28 lines
412 B
Nix
![]() |
{ lib, ... }:
|
||
|
let
|
||
|
mainPort = "4200";
|
||
|
in
|
||
|
{
|
||
|
name = "prefect";
|
||
|
|
||
|
nodes = {
|
||
|
machine =
|
||
|
{ ... }:
|
||
|
{
|
||
|
services.prefect = {
|
||
|
enable = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
testScript = ''
|
||
|
machine.start()
|
||
|
machine.wait_for_unit("prefect-server.service")
|
||
|
machine.wait_for_open_port("${mainPort}")
|
||
|
'';
|
||
|
|
||
|
meta = with lib.maintainers; {
|
||
|
maintainers = [ happysalada ];
|
||
|
};
|
||
|
}
|