mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
18 lines
327 B
Nix
18 lines
327 B
Nix
|
{ lib, ... }:
|
||
|
{
|
||
|
name = "ollama-rocm";
|
||
|
meta.maintainers = with lib.maintainers; [ abysssol ];
|
||
|
|
||
|
nodes.rocm =
|
||
|
{ ... }:
|
||
|
{
|
||
|
services.ollama.enable = true;
|
||
|
services.ollama.acceleration = "rocm";
|
||
|
};
|
||
|
|
||
|
testScript = ''
|
||
|
rocm.wait_for_unit("multi-user.target")
|
||
|
rocm.wait_for_open_port(11434)
|
||
|
'';
|
||
|
}
|