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
|
let
|
||||||
ollamaConfPath = flakeRoot + "/assets/conf/apps/ai/ollama/ollama.conf";
|
ollamaConfPath = flakeRoot + "/assets/conf/apps/ai/ollama/ollama.conf";
|
||||||
ollamaEnv = builtins.splitLines (builtins.readFile ollamaConfPath);
|
envVars = {
|
||||||
envVars = lib.genAttrs (ollamaEnv) (line: let
|
OLLAMA_HOST = "http://127.0.0.1:11434";
|
||||||
parts = builtins.splitString "=" line;
|
OLLAMA_DEFAULT_MODEL = "codellama:70b";
|
||||||
key = lib.elemAt parts 0;
|
OLLAMA_MODELS_TO_PULL = "codellama:70b,llama3.1:70b";
|
||||||
value = lib.elemAt parts 1;
|
};
|
||||||
in
|
|
||||||
if key == "" then
|
|
||||||
{}
|
|
||||||
else
|
|
||||||
{ inherit key value; });
|
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
OLLAMA_HOST="http://127.0.0.1:11434"
|
{
|
||||||
OLAMA_DEFAULT_MODEL="codellama:70b"
|
"OLLAMA_HOST"="http://127.0.0.1:11434",
|
||||||
OLAMA_DEFAULT_MODEL="llama3.1:70b"
|
"OLAMA_DEFAULT_MODEL"="codellama:70b",
|
||||||
|
"OLLAMA_ADDITIONAL_MODELS"="llama3.1:70b"
|
||||||
|
}
|
||||||
|
|||||||
@@ -2,16 +2,11 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
ollamaConfPath = flakeRoot + "/assets/conf/apps/ai/ollama/ollama.conf";
|
ollamaConfPath = flakeRoot + "/assets/conf/apps/ai/ollama/ollama.conf";
|
||||||
ollamaEnv = builtins.splitLines (builtins.readFile ollamaConfPath);
|
envVars = {
|
||||||
envVars = lib.genAttrs (ollamaEnv) (line: let
|
OLLAMA_HOST = "http://127.0.0.1:11434";
|
||||||
parts = builtins.splitString "=" line;
|
OLLAMA_DEFAULT_MODEL = "codellama:70b";
|
||||||
key = lib.elemAt parts 0;
|
OLLAMA_MODELS_TO_PULL = "codellama:70b,llama3.1:70b";
|
||||||
value = lib.elemAt parts 1;
|
};
|
||||||
in
|
|
||||||
if key == "" then
|
|
||||||
{}
|
|
||||||
else
|
|
||||||
{ inherit key value; });
|
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user