mirror of
https://github.com/srid/nixos-config.git
synced 2026-04-11 14:16:42 +08:00
25 lines
601 B
Nix
25 lines
601 B
Nix
{ flake, pkgs, ... }:
|
|
{
|
|
imports = [
|
|
flake.inputs.oc.homeModules.opencode
|
|
];
|
|
|
|
programs.opencode = {
|
|
package = flake.inputs.oc.packages.${pkgs.stdenv.hostPlatform.system}.opencode;
|
|
autoWire.dirs = [
|
|
flake.inputs.skills.outPath
|
|
(flake.self.outPath + "/AI")
|
|
];
|
|
settings = {
|
|
model = "anthropic/claude-opus-4-6/max";
|
|
};
|
|
};
|
|
|
|
# Prevent opencode from delegating to Claude Code when it's installed
|
|
programs.zsh.initContent = ''
|
|
export OPENCODE_DISABLE_CLAUDE_CODE=1
|
|
'';
|
|
programs.bash.initExtra = ''
|
|
export OPENCODE_DISABLE_CLAUDE_CODE=1
|
|
'';
|
|
}
|