New Ollama.nix, the ai.nix did not work out. Added ZED-editor as separate app

This commit is contained in:
2026-02-28 15:17:05 +01:00
parent aae5e11674
commit e94d4551ed
4 changed files with 323 additions and 336 deletions
+308 -313
View File
File diff suppressed because it is too large Load Diff
+5 -10
View File
@@ -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"
}
+5 -10
View File
@@ -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
{