mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
27 lines
385 B
Nix
27 lines
385 B
Nix
|
{ lib, pkgs, ... }:
|
||
|
|
||
|
let
|
||
|
lib = pkgs.lib;
|
||
|
|
||
|
in
|
||
|
{
|
||
|
name = "chromadb";
|
||
|
meta.maintainers = [ lib.maintainers.drupol ];
|
||
|
|
||
|
nodes = {
|
||
|
machine =
|
||
|
{ pkgs, ... }:
|
||
|
{
|
||
|
services.chromadb = {
|
||
|
enable = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
testScript = ''
|
||
|
machine.start()
|
||
|
machine.wait_for_unit("chromadb.service")
|
||
|
machine.wait_for_open_port(8000)
|
||
|
'';
|
||
|
}
|