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

@ -20,7 +20,6 @@ in
"${homeMod}/cli/ssh-agent-forwarding.nix"
"${homeMod}/cli/controlpersist.nix"
"${homeMod}/claude-code"
"${homeMod}/opencode/juspay.nix"
"${homeMod}/work/juspay.nix"
"${homeMod}/services/vira.nix"
"${homeMod}/services/kolu.nix"

258
flake.lock generated
View file

@ -43,71 +43,6 @@
"type": "github"
}
},
"blueprint": {
"inputs": {
"nixpkgs": [
"oc",
"llm-agents",
"nixpkgs"
],
"systems": [
"oc",
"llm-agents",
"systems"
]
},
"locked": {
"lastModified": 1771437256,
"narHash": "sha256-bLqwib+rtyBRRVBWhMuBXPCL/OThfokA+j6+uH7jDGU=",
"owner": "numtide",
"repo": "blueprint",
"rev": "06ee7190dc2620ea98af9eb225aa9627b68b0e33",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "blueprint",
"type": "github"
}
},
"bun2nix": {
"inputs": {
"flake-parts": [
"oc",
"llm-agents",
"flake-parts"
],
"import-tree": "import-tree",
"nixpkgs": [
"oc",
"llm-agents",
"nixpkgs"
],
"systems": [
"oc",
"llm-agents",
"systems"
],
"treefmt-nix": [
"oc",
"llm-agents",
"treefmt-nix"
]
},
"locked": {
"lastModified": 1770895533,
"narHash": "sha256-v3QaK9ugy9bN9RXDnjw0i2OifKmz2NnKM82agtqm/UY=",
"owner": "nix-community",
"repo": "bun2nix",
"rev": "c843f477b15f51151f8c6bcc886954699440a6e1",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "bun2nix",
"type": "github"
}
},
"co-log-effectful": {
"flake": false,
"locked": {
@ -429,46 +364,6 @@
}
},
"flake-parts_6": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib_2"
},
"locked": {
"lastModified": 1775087534,
"narHash": "sha256-91qqW8lhL7TLwgQWijoGBbiD4t7/q75KTi8NxjVmSmA=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "3107b77cd68437b9a76194f0f7f9c55f2329ca5b",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_7": {
"inputs": {
"nixpkgs-lib": [
"oc",
"llm-agents",
"nixpkgs"
]
},
"locked": {
"lastModified": 1775087534,
"narHash": "sha256-91qqW8lhL7TLwgQWijoGBbiD4t7/q75KTi8NxjVmSmA=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "3107b77cd68437b9a76194f0f7f9c55f2329ca5b",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_8": {
"inputs": {
"nixpkgs-lib": [
"vira",
@ -788,21 +683,6 @@
"type": "github"
}
},
"import-tree": {
"locked": {
"lastModified": 1763762820,
"narHash": "sha256-ZvYKbFib3AEwiNMLsejb/CWs/OL/srFQ8AogkebEPF0=",
"owner": "vic",
"repo": "import-tree",
"rev": "3c23749d8013ec6daa1d7255057590e9ca726646",
"type": "github"
},
"original": {
"owner": "vic",
"repo": "import-tree",
"type": "github"
}
},
"jumphost-nix": {
"flake": false,
"locked": {
@ -850,29 +730,6 @@
"type": "github"
}
},
"llm-agents": {
"inputs": {
"blueprint": "blueprint",
"bun2nix": "bun2nix",
"flake-parts": "flake-parts_7",
"nixpkgs": "nixpkgs_5",
"systems": "systems_4",
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1775228445,
"narHash": "sha256-XvD6OKZgmz6twbqZ9XDOVkIuPwiQl/M5fs0R+EPTieA=",
"owner": "numtide",
"repo": "llm-agents.nix",
"rev": "bc266f481d670bbdf6371c7ebc322e1b310f4eb5",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "llm-agents.nix",
"type": "github"
}
},
"lvar": {
"flake": false,
"locked": {
@ -1100,21 +957,6 @@
"type": "github"
}
},
"nixpkgs-lib_2": {
"locked": {
"lastModified": 1774748309,
"narHash": "sha256-+U7gF3qxzwD5TZuANzZPeJTZRHS29OFQgkQ2kiTJBIQ=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "333c4e0545a6da976206c74db8773a1645b5870a",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1752900028,
@ -1164,22 +1006,6 @@
}
},
"nixpkgs_5": {
"locked": {
"lastModified": 1775126147,
"narHash": "sha256-J0dZU4atgcfo4QvM9D92uQ0Oe1eLTxBVXjJzdEMQpD0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8d8c1fa5b412c223ffa47410867813290cdedfef",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_6": {
"locked": {
"lastModified": 1765803225,
"narHash": "sha256-xwaZV/UgJ04+ixbZZfoDE8IsOWjtvQZICh9aamzPnrg=",
@ -1217,32 +1043,6 @@
"type": "github"
}
},
"oc": {
"inputs": {
"flake-parts": "flake-parts_6",
"llm-agents": "llm-agents",
"nixpkgs": [
"oc",
"llm-agents",
"nixpkgs"
],
"skills": "skills"
},
"locked": {
"lastModified": 1775262539,
"narHash": "sha256-jXCNshFSVTwlb6EN/zvWAWgFUjR3xfRSHBQmlEP9db8=",
"owner": "juspay",
"repo": "AI",
"rev": "bab538f7a8497f9f8fedff29c576571fe81156cb",
"type": "github"
},
"original": {
"owner": "juspay",
"ref": "feat/skills-flake-input",
"repo": "AI",
"type": "github"
}
},
"process-compose-flake": {
"locked": {
"lastModified": 1767863885,
@ -1311,7 +1111,6 @@
"nixos-vscode-server": "nixos-vscode-server",
"nixpkgs": "nixpkgs_4",
"nixvim": "nixvim",
"oc": "oc",
"vira": "vira"
}
},
@ -1376,22 +1175,6 @@
"type": "github"
}
},
"skills": {
"flake": false,
"locked": {
"lastModified": 1775258712,
"narHash": "sha256-BDo/r5OQoyVtqDr0xc6oR+BXfFDiithSvPUvmYv6cxM=",
"owner": "juspay",
"repo": "skills",
"rev": "a27a11e0cf50bd0e5b4d5496848885c2465689e9",
"type": "github"
},
"original": {
"owner": "juspay",
"repo": "skills",
"type": "github"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
@ -1437,21 +1220,6 @@
"type": "github"
}
},
"systems_4": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"tabler-icons-hs": {
"flake": false,
"locked": {
@ -1468,28 +1236,6 @@
"type": "github"
}
},
"treefmt-nix": {
"inputs": {
"nixpkgs": [
"oc",
"llm-agents",
"nixpkgs"
]
},
"locked": {
"lastModified": 1775125835,
"narHash": "sha256-2qYcPgzFhnQWchHo0SlqLHrXpux5i6ay6UHA+v2iH4U=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "75925962939880974e3ab417879daffcba36c4a3",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
},
"unionmount": {
"flake": false,
"locked": {
@ -1527,7 +1273,7 @@
"inputs": {
"co-log-effectful": "co-log-effectful",
"devour-flake": "devour-flake",
"flake-parts": "flake-parts_8",
"flake-parts": "flake-parts_6",
"fourmolu-nix": "fourmolu-nix_3",
"git-hooks": "git-hooks_5",
"haskell-flake": "haskell-flake_3",
@ -1537,7 +1283,7 @@
"nix-serve-ng": "nix-serve-ng",
"nix-systems": "nix-systems",
"nixos-unified": "nixos-unified_3",
"nixpkgs": "nixpkgs_6",
"nixpkgs": "nixpkgs_5",
"process-compose-flake": "process-compose-flake_2",
"record-hasfield": "record-hasfield",
"servant-event-stream": "servant-event-stream",

View file

@ -29,7 +29,6 @@
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
# vira.url = "github:juspay/vira/github";
vira.url = "github:juspay/vira";
oc.url = "github:juspay/AI";
# landrun-nix.url = "github:srid/landrun-nix";
landrun-nix.url = "github:adrian-gierakowski/landrun-nix/darwin-implementation-via-sandbox-exec";
nix-agent-wire.url = "github:srid/nix-agent-wire";
@ -39,9 +38,6 @@
# KOLU
kolu.url = "github:juspay/kolu";
skills.url = "github:juspay/skills";
skills.flake = false;
# Neovim
nixvim.url = "github:nix-community/nixvim";
nixvim.inputs.nixpkgs.follows = "nixpkgs";

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 = {