misc fixes
This commit is contained in:
19
services/llm.nix
Normal file
19
services/llm.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
service_configs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
home = service_configs.ollama.data_dir + "/home";
|
||||
models = service_configs.ollama.data_dir + "/home/models";
|
||||
environmentVariables = {
|
||||
OLLAMA_LLM_LIBRARY = "cpu_avx2";
|
||||
};
|
||||
host = "0.0.0.0";
|
||||
port = service_configs.ports.ollama;
|
||||
user = "ollama";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user