From 9b80f3716abdcf087909ddf6612f94629eefcbda Mon Sep 17 00:00:00 2001 From: Ethan Reece Date: Tue, 1 Jul 2025 23:49:20 -0500 Subject: [PATCH] Add AI tools --- home/home.nix | 34 ++++++++++++++++++++++ hosts/Ethans-MacBook-Air/configuration.nix | 4 +++ 2 files changed, 38 insertions(+) diff --git a/home/home.nix b/home/home.nix index 42d9171..de893fe 100644 --- a/home/home.nix +++ b/home/home.nix @@ -58,6 +58,40 @@ nix-your-shell = { enable = true; }; + codex = { + enable = true; + settings = { + model = "qwen2.5-coder"; + provider = "ollama"; + providers = { + ollama = { + name = "Ollama"; + baseURL = "http://localhost:11434/v1"; + envKey = "OLLAMA_API_KEY"; + }; + }; + }; + }; + aichat = { + enable = true; + settings = { + model = "ollama:qwen2.5-coder:latest"; + clients = [ + { + type = "openai-compatible"; + name = "ollama"; + api_base = "http://localhost:11434/v1"; + models = [ + { + name = "qwen2.5-coder:latest"; + supports_function_calling = true; + supports_vision = true; + } + ]; + } + ]; + }; + }; rbw = { enable = true; settings = { diff --git a/hosts/Ethans-MacBook-Air/configuration.nix b/hosts/Ethans-MacBook-Air/configuration.nix index 8377dd4..321aeda 100644 --- a/hosts/Ethans-MacBook-Air/configuration.nix +++ b/hosts/Ethans-MacBook-Air/configuration.nix @@ -31,10 +31,14 @@ homebrew = { enable = true; + brews = [ + "ollama" + ]; casks = [ "tidal" "orion" "webex" + "ollama-app" ]; }; }