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:12:55 +01:00
parent 77e4dd9b05
commit aae5e11674
3 changed files with 313 additions and 307 deletions
+305 -303
View File
File diff suppressed because it is too large Load Diff
+4 -2
View File
@@ -1648,11 +1648,13 @@ let
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 lib.elemAt parts 0 == "" then
if key == "" then
{}
else
{ (lib.elemAt parts 0) = lib.elemAt parts 1; });
{ inherit key value; });
in
{
+4 -2
View File
@@ -5,11 +5,13 @@ let
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 lib.elemAt parts 0 == "" then
if key == "" then
{}
else
{ (lib.elemAt parts 0) = lib.elemAt parts 1; });
{ inherit key value; });
in
{