New Ollama.nix, the ai.nix did not work out. Added ZED-editor as separate app
This commit is contained in:
@@ -2,11 +2,7 @@
|
||||
|
||||
let
|
||||
ollamaConfPath = flakeRoot + "/assets/conf/apps/ai/ollama/ollama.conf";
|
||||
envVars = {
|
||||
OLLAMA_HOST = "http://127.0.0.1:11434";
|
||||
OLLAMA_DEFAULT_MODEL = "codellama:70b";
|
||||
OLLAMA_MODELS_TO_PULL = "codellama:70b,llama3.1:70b";
|
||||
};
|
||||
envVars = builtins.fromJSON (builtins.readFile ollamaConfPath);
|
||||
in
|
||||
|
||||
{
|
||||
@@ -14,6 +10,5 @@ in
|
||||
enable = true;
|
||||
package = pkgs.ollama;
|
||||
environmentVariables = envVars;
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user