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" ]; }; }