New Ollama.nix, the ai.nix did not work out. Added ZED-editor as separate app
This commit is contained in:
+308
-313
File diff suppressed because it is too large
Load Diff
+5
-10
@@ -1645,16 +1645,11 @@ This Home Manager Nix module (ai.nix) installs the Ollama package and configures
|
||||
|
||||
let
|
||||
ollamaConfPath = flakeRoot + "/assets/conf/apps/ai/ollama/ollama.conf";
|
||||
ollamaEnv = builtins.splitLines (builtins.readFile ollamaConfPath);
|
||||
envVars = lib.genAttrs (ollamaEnv) (line: let
|
||||
parts = builtins.splitString "=" line;
|
||||
key = lib.elemAt parts 0;
|
||||
value = lib.elemAt parts 1;
|
||||
in
|
||||
if key == "" then
|
||||
{}
|
||||
else
|
||||
{ inherit key value; });
|
||||
envVars = {
|
||||
OLLAMA_HOST = "http://127.0.0.1:11434";
|
||||
OLLAMA_DEFAULT_MODEL = "codellama:70b";
|
||||
OLLAMA_MODELS_TO_PULL = "codellama:70b,llama3.1:70b";
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
OLLAMA_HOST="http://127.0.0.1:11434"
|
||||
OLAMA_DEFAULT_MODEL="codellama:70b"
|
||||
OLAMA_DEFAULT_MODEL="llama3.1:70b"
|
||||
{
|
||||
"OLLAMA_HOST"="http://127.0.0.1:11434",
|
||||
"OLAMA_DEFAULT_MODEL"="codellama:70b",
|
||||
"OLLAMA_ADDITIONAL_MODELS"="llama3.1:70b"
|
||||
}
|
||||
|
||||
@@ -2,16 +2,11 @@
|
||||
|
||||
let
|
||||
ollamaConfPath = flakeRoot + "/assets/conf/apps/ai/ollama/ollama.conf";
|
||||
ollamaEnv = builtins.splitLines (builtins.readFile ollamaConfPath);
|
||||
envVars = lib.genAttrs (ollamaEnv) (line: let
|
||||
parts = builtins.splitString "=" line;
|
||||
key = lib.elemAt parts 0;
|
||||
value = lib.elemAt parts 1;
|
||||
in
|
||||
if key == "" then
|
||||
{}
|
||||
else
|
||||
{ inherit key value; });
|
||||
envVars = {
|
||||
OLLAMA_HOST = "http://127.0.0.1:11434";
|
||||
OLLAMA_DEFAULT_MODEL = "codellama:70b";
|
||||
OLLAMA_MODELS_TO_PULL = "codellama:70b,llama3.1:70b";
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user