more opencode stuff

This commit is contained in:
Anish Lakhwara
2026-01-13 20:34:35 -08:00
parent 328779b0ac
commit 3b33575b2a
11 changed files with 235 additions and 106 deletions
+17 -5
View File
@@ -1,10 +1,15 @@
{ pkgs, lib, inputs, ... }:
{
pkgs,
lib,
inputs,
...
}:
let
# Paths to agenix-decrypted secrets (same on Darwin and NixOS)
githubToken = "/run/agenix/github-token";
anthropicToken = "/run/agenix/anthropicToken";
# github-mcp-server binary path from nixpkgs
githubMcpServer = "${pkgs.github-mcp-server}/bin/github-mcp-server";
in
@@ -12,7 +17,8 @@ in
home.packages = [
pkgs.github-mcp-server
inputs.llm-agents.packages.${pkgs.system}.opencode
inputs.llm-agents.packages.${pkgs.system}.beads
inputs.llm-agents.packages.${pkgs.system}.tuicr
inputs.llm-agents.packages.${pkgs.system}.chainlink
];
# OpenCode configuration directory
@@ -34,7 +40,10 @@ in
mcp = {
github = {
type = "local";
command = [ githubMcpServer "stdio" ];
command = [
githubMcpServer
"stdio"
];
environment = {
GITHUB_PERSONAL_ACCESS_TOKEN = "{file:${githubToken}}";
};
@@ -44,9 +53,12 @@ in
build.tools."github_*" = false;
plan.tools."github_*" = false;
};
#plugin = ["@plannotator/opencode@latest"];
};
"opencode/themes/ayu-mirage.json".source = ./themes/ayu-mirage.json;
"opencode/agent/librarian.md".source = ./agent/librarian.md;
"opencode/agent/adversary.md".source = ./agent/adversary.md;
"opencode/command/cleanup.md".source = ./command/cleanup.md;
};
}