mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
29 lines
450 B
Nix
29 lines
450 B
Nix
{ lib, ... }:
|
|
let
|
|
mainPort = "4200";
|
|
in
|
|
{
|
|
name = "prefect";
|
|
|
|
nodes = {
|
|
machine =
|
|
{ ... }:
|
|
{
|
|
services.prefect = {
|
|
enable = true;
|
|
baseUrl = "http://127.0.0.1";
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine.start()
|
|
machine.wait_for_unit("prefect-server.service")
|
|
machine.wait_for_open_port(${mainPort})
|
|
'';
|
|
|
|
meta = with lib.maintainers; {
|
|
maintainers = [ happysalada ];
|
|
};
|
|
}
|