New Ollama.nix, the ai.nix did not work out. Added ZED-editor as separate app
This commit is contained in:
+305
-303
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user