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
+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
{