nixos-config/modules/home/claude-code/juspay.nix
Sridhar Ratnakumar f13b2406c6
Add opencode home-manager module for zest and pureintent (#103)
* Add opencode home-manager module for zest and pureintent

* Move claude-code Juspay config to separate module

* Add JUSPAY_API_KEY export for opencode
2026-03-11 13:56:30 -04:00

24 lines
631 B
Nix

{ flake, config, ... }:
let
inherit (flake) self;
in
{
imports = [
../agenix.nix
];
home.sessionVariables = {
ANTHROPIC_BASE_URL = "https://grid.ai.juspay.net";
ANTHROPIC_MODEL = "claude-sonnet-4-5";
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS = "1";
};
age.secrets.juspay-anthropic-api-key.file = self + /secrets/juspay-anthropic-api-key.age;
programs.zsh.initContent = ''
export ANTHROPIC_API_KEY="$(cat "${config.age.secrets.juspay-anthropic-api-key.path}")"
'';
programs.bash.initExtra = ''
export ANTHROPIC_API_KEY="$(cat "${config.age.secrets.juspay-anthropic-api-key.path}")"
'';
}