mirror of
https://github.com/srid/nixos-config.git
synced 2026-04-20 12:11:19 +08:00
* Add opencode home-manager module for zest and pureintent * Move claude-code Juspay config to separate module * Add JUSPAY_API_KEY export for opencode
24 lines
631 B
Nix
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}")"
|
|
'';
|
|
}
|