mirror of
https://github.com/srid/nixos-config.git
synced 2026-04-21 04:26:20 +08:00
- Add opencode/web.nix module for web service configuration - Bind to Tailscale IP (100.122.32.106) on port 4096 - Pass JUSPAY_API_KEY from agenix secret to service - Update flake inputs: nixpkgs/unstable, nix-darwin/master, home-manager/master
15 lines
424 B
Nix
15 lines
424 B
Nix
let
|
|
models = import ./models.nix;
|
|
in
|
|
{
|
|
npm = "@ai-sdk/openai-compatible";
|
|
name = "Juspay";
|
|
options = {
|
|
baseURL = "https://grid.ai.juspay.net";
|
|
# HACK: hardcoded path to agenix secret. Should use XDG_RUNTIME_DIR but
|
|
# OpenCode's {file:...} doesn't support environment variable expansion.
|
|
apiKey = "{file:/run/user/1000/agenix/juspay-anthropic-api-key}";
|
|
timeout = 600000;
|
|
};
|
|
inherit models;
|
|
}
|