mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-01 19:35:40 +08:00
- Remove vendor/AI git submodule, use github:srid/AI flake input - Import AI's opencode home-manager module for autoWire - Set OPENCODE_DISABLE_CLAUDE_CODE=1
21 lines
628 B
Nix
21 lines
628 B
Nix
{ config, flake, pkgs, ... }:
|
|
{
|
|
imports = [
|
|
flake.inputs.oc.homeModules.default
|
|
flake.inputs.AI.homeManagerModules.opencode
|
|
];
|
|
|
|
programs.opencode = {
|
|
package = flake.inputs.oc.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
|
autoWire.dir = flake.inputs.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
|
|
'';
|
|
}
|