This commit is contained in:
Sridhar Ratnakumar 2026-04-04 13:47:23 -04:00
parent bc6ba430cf
commit 2e1e36520c
9 changed files with 2 additions and 308 deletions

View file

@ -17,9 +17,7 @@
# "nixos-hardware"
"nix-index-database"
"nixvim"
"oc"
"nix-agent-wire"
"skills"
];
};
};

View file

@ -14,7 +14,6 @@
package = pkgs.claude-code;
autoWire.dirs = [
flake.inputs.skills.outPath
(flake.self.outPath + "/AI")
];
};

View file

@ -1,25 +0,0 @@
{ 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
'';
}

View file

@ -1,16 +0,0 @@
# Juspay LLM provider for opencode (via grid.ai.juspay.net)
# Import this module alongside ./default.nix to use Juspay models.
{ config, flake, ... }:
let
inherit (flake) self;
in
{
age.secrets.juspay-anthropic-api-key.file = self + /secrets/juspay-anthropic-api-key.age;
programs.zsh.initContent = ''
export JUSPAY_API_KEY="$(cat "${config.age.secrets.juspay-anthropic-api-key.path}")"
'';
programs.bash.initExtra = ''
export JUSPAY_API_KEY="$(cat "${config.age.secrets.juspay-anthropic-api-key.path}")"
'';
}

View file

@ -62,9 +62,7 @@ in
rust-nix-template = "https://github.com/srid/rust-nix-template.git";
# services-flake = "https://github.com/juspay/services-flake.git";
process-compose-flake = "https://github.com/Platonic-Systems/process-compose-flake.git";
oc = "https://github.com/juspay/oc.git";
vira = "https://github.com/juspay/vira.git";
skills = "https://github.com/juspay/skills.git";
emanote = "https://github.com/srid/emanote.git";
unionmount = "https://github.com/srid/unionmount.git";
ema = "https://github.com/srid/ema.git";

View file

@ -11,7 +11,6 @@ in
"${jumphost-nix}/module.nix"
"${homeMod}/agenix.nix"
# "${homeMod}/claude-code/juspay.nix" # Disabled: not using Claude Code at Juspay
"${homeMod}/opencode"
];
programs.jumphost = {