1
0
Fork 0
forked from DGNum/lab-infra
lab-infra/machines/krz01/ollama/default.nix

21 lines
381 B
Nix
Raw Normal View History

{
config,
pkgs,
meta,
name,
...
}:
{
services = {
ollama = {
enable = true;
host = meta.network.${name}.netbirdIp;
package = pkgs.callPackage ./package.nix {
cudaPackages = pkgs.cudaPackages_11;
# We need to thread our nvidia x11 driver for CUDA.
extraLibraries = [ config.hardware.nvidia.package ];
};
};
};
}