mirror of
https://github.com/srid/nixos-config.git
synced 2026-04-20 03:45:22 +08:00
16 lines
532 B
Nix
16 lines
532 B
Nix
# Juspay LLM provider for opencode (via grid.ai.juspay.net)
|
|
# Import this module alongside ./default.nix to use Juspay models.
|
|
{ config, flake, ... }:
|
|
let
|
|
inherit (flake) self;
|
|
in
|
|
{
|
|
age.secrets.juspay-anthropic-api-key.file = self + /secrets/juspay-anthropic-api-key.age;
|
|
|
|
programs.zsh.initContent = ''
|
|
export JUSPAY_API_KEY="$(cat "${config.age.secrets.juspay-anthropic-api-key.path}")"
|
|
'';
|
|
programs.bash.initExtra = ''
|
|
export JUSPAY_API_KEY="$(cat "${config.age.secrets.juspay-anthropic-api-key.path}")"
|
|
'';
|
|
}
|