diff --git a/home/apps/default.nix b/home/apps/default.nix index 18cb340e..8643c51b 100644 --- a/home/apps/default.nix +++ b/home/apps/default.nix @@ -3,9 +3,9 @@ device, ... }: -lib.optionalAttrs device.hasGui { + lib.optionalAttrs device.hasGui { imports = [ - # ./audacity.nix + ./audacity.nix # ./bottles.nix # ./cursor.nix # ./gimp.nix diff --git a/home/programs/opencode.nix b/home/programs/opencode.nix index 9a7cec85..ea2c13ef 100644 --- a/home/programs/opencode.nix +++ b/home/programs/opencode.nix @@ -6,5 +6,20 @@ lib.optionalAttrs (device.is "ryu" || device.is "kuro") { programs.opencode = { enable = true; + settings.provider = { + ollama = { + models = { + "glm-4.7-flash" = { + # "_launch" = true; + name = "glm-4.7-flash"; + }; + }; + name = "Ollama (local)"; + npm = "@ai-sdk/openai-compatible"; + options = { + baseURL = "https://ollama.darksailor.dev/v1"; + }; + }; + }; }; }