From 56ec13855ac8e3473839333db02d4679b0e97394 Mon Sep 17 00:00:00 2001 From: js0ny Date: Fri, 21 Nov 2025 13:37:49 +0000 Subject: [PATCH] aichat: nixify --- home/.chezmoiignore.tmpl | 1 + nixcfgs/users/js0ny/programs/aichat.nix | 32 +++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 nixcfgs/users/js0ny/programs/aichat.nix diff --git a/home/.chezmoiignore.tmpl b/home/.chezmoiignore.tmpl index 2055f61..b460f77 100644 --- a/home/.chezmoiignore.tmpl +++ b/home/.chezmoiignore.tmpl @@ -72,6 +72,7 @@ vim:ft=gotmpl .config/zed/settings.json .config/zed/keymap.json .config/starship.toml + .config/aichat .local/share/kio/** .local/share/fonts/** {{ end }} diff --git a/nixcfgs/users/js0ny/programs/aichat.nix b/nixcfgs/users/js0ny/programs/aichat.nix new file mode 100644 index 0000000..2df51dc --- /dev/null +++ b/nixcfgs/users/js0ny/programs/aichat.nix @@ -0,0 +1,32 @@ +{...}: { + programs.aichat = { + enable = true; + settings = { + model = "openrouter:qwen/qwen3-235b-a22b-2507"; + clients = [ + { + type = "openai-compatbile"; + name = "openrouter"; + api_base = "https://openrouter.ai/api/v1"; + models = [ + {name = "google/gemini-2.5-flash";} + {name = "google/gemini-2.5-pro";} + {name = "google/gemini-3-pro-preview";} + {name = "anthropic/claude-sonnet-4.5";} + {name = "anthropic/claude-haiku-4.5";} + {name = "anthropic/claude-opus-4.1";} + {name = "openai/gpt-5.1";} + {name = "openai/gpt-5.1-codex";} + {name = "openai/gpt-5-mini";} + {name = "x-ai/grok-code-fast-1";} + {name = "x-ai/grok-4-fast";} + {name = "x-ai/grok-4";} + {name = "deepseek/deepseek-v3.2-exp";} + {name = "qwen/qwen3-235b-a22b-2507";} + {name = "qwen/qwen3-max";} + ]; + } + ]; + }; + }; +}