mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00
28 lines
398 B
Nix
28 lines
398 B
Nix
![]() |
{ lib, ... }:
|
||
|
let
|
||
|
mainPort = "8080";
|
||
|
in
|
||
|
{
|
||
|
name = "litellm";
|
||
|
|
||
|
nodes = {
|
||
|
machine =
|
||
|
{ ... }:
|
||
|
{
|
||
|
services.litellm = {
|
||
|
enable = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
testScript = ''
|
||
|
machine.start()
|
||
|
machine.wait_for_unit("litellm.service")
|
||
|
machine.wait_for_open_port(${mainPort})
|
||
|
'';
|
||
|
|
||
|
meta = with lib.maintainers; {
|
||
|
maintainers = [ drupol ];
|
||
|
};
|
||
|
}
|