nixos-config/modules/home/opencode/default.nix
Sridhar Ratnakumar 0537ef99b9
Migrate AI config to nixos-config, use nix-agent-wire (#107)
- Move AI config from nix-agent-wire/srid to ./AI
- Update flake input: srid/AI -> srid/nix-agent-wire
- Update home modules to use local AI folder via flake.self.outPath
2026-03-16 16:58:08 -04:00

21 lines
652 B
Nix

{ config, flake, pkgs, ... }:
{
imports = [
flake.inputs.oc.homeModules.default
flake.inputs.nix-agent-wire.homeManagerModules.opencode
];
programs.opencode = {
package = flake.inputs.oc.packages.${pkgs.stdenv.hostPlatform.system}.opencode;
autoWire.dir = flake.self.outPath + "/AI";
};
programs.zsh.initContent = ''
export JUSPAY_API_KEY="$(cat "${config.age.secrets.juspay-anthropic-api-key.path}")"
export OPENCODE_DISABLE_CLAUDE_CODE=1
'';
programs.bash.initExtra = ''
export JUSPAY_API_KEY="$(cat "${config.age.secrets.juspay-anthropic-api-key.path}")"
export OPENCODE_DISABLE_CLAUDE_CODE=1
'';
}