blob: 5da9d52c6aa4f1186bc7a37aa4f5b4fd83d1d491 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{ lib, pkgs, ... }:
{
name = "ollama-cuda";
meta.maintainers = [ ];
nodes.cuda =
{ ... }:
{
services.ollama.enable = true;
services.ollama.package = pkgs.ollama-cuda;
};
testScript = ''
cuda.wait_for_unit("multi-user.target")
cuda.wait_for_open_port(11434)
'';
}
|