feat(opencode): deploy rules/ to ~/.config/opencode/rules/ via home-manager
- Add xdg.configFile entry for opencode/rules - Rules deployed alongside skills, commands, context, prompts Refs: T4 of rules-system plan
This commit is contained in:
@@ -16,6 +16,10 @@
|
|||||||
source = "${inputs.agents}/skills";
|
source = "${inputs.agents}/skills";
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
|
"opencode/rules" = {
|
||||||
|
source = "${inputs.agents}/rules";
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.opencode = {
|
programs.opencode = {
|
||||||
@@ -23,8 +27,7 @@
|
|||||||
settings = {
|
settings = {
|
||||||
theme = "opencode";
|
theme = "opencode";
|
||||||
plugin = [ "oh-my-opencode" "opencode-antigravity-auth@beta" ];
|
plugin = [ "oh-my-opencode" "opencode-antigravity-auth@beta" ];
|
||||||
agent =
|
agent = builtins.fromJSON
|
||||||
builtins.fromJSON
|
|
||||||
(builtins.readFile "${inputs.agents}/agents/agents.json");
|
(builtins.readFile "${inputs.agents}/agents/agents.json");
|
||||||
formatter = {
|
formatter = {
|
||||||
alejandra = {
|
alejandra = {
|
||||||
@@ -210,59 +213,28 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
home.file.".config/opencode/oh-my-opencode.json".text = builtins.toJSON {
|
home.file.".config/opencode/oh-my-opencode.json".text = builtins.toJSON {
|
||||||
"$schema" = "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json";
|
"$schema" =
|
||||||
|
"https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json";
|
||||||
# google_auth removed - use opencode-antigravity-auth plugin instead (already in plugin array)
|
# google_auth removed - use opencode-antigravity-auth plugin instead (already in plugin array)
|
||||||
agents = {
|
agents = {
|
||||||
sisyphus = {
|
sisyphus = { model = "zai-coding-plan/glm-5"; };
|
||||||
model = "zai-coding-plan/glm-5";
|
oracle = { model = "zai-coding-plan/glm-5"; };
|
||||||
};
|
librarian = { model = "zai-coding-plan/glm-5"; };
|
||||||
oracle = {
|
explore = { model = "zai-coding-plan/glm-4.5-air"; };
|
||||||
model = "zai-coding-plan/glm-5";
|
multimodal-looker = { model = "zai-coding-plan/glm-4.6v"; };
|
||||||
};
|
prometheus = { model = "zai-coding-plan/glm-5"; };
|
||||||
librarian = {
|
metis = { model = "zai-coding-plan/glm-5"; };
|
||||||
model = "zai-coding-plan/glm-5";
|
momus = { model = "zai-coding-plan/glm-5"; };
|
||||||
};
|
atlas = { model = "zai-coding-plan/glm-5"; };
|
||||||
explore = {
|
|
||||||
model = "zai-coding-plan/glm-4.5-air";
|
|
||||||
};
|
|
||||||
multimodal-looker = {
|
|
||||||
model = "zai-coding-plan/glm-4.6v";
|
|
||||||
};
|
|
||||||
prometheus = {
|
|
||||||
model = "zai-coding-plan/glm-5";
|
|
||||||
};
|
|
||||||
metis = {
|
|
||||||
model = "zai-coding-plan/glm-5";
|
|
||||||
};
|
|
||||||
momus = {
|
|
||||||
model = "zai-coding-plan/glm-5";
|
|
||||||
};
|
|
||||||
atlas = {
|
|
||||||
model = "zai-coding-plan/glm-5";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
categories = {
|
categories = {
|
||||||
visual-engineering = {
|
visual-engineering = { model = "zai-coding-plan/glm-5"; };
|
||||||
model = "zai-coding-plan/glm-5";
|
ultrabrain = { model = "zai-coding-plan/glm-5"; };
|
||||||
};
|
artistry = { model = "zai-coding-plan/glm-5"; };
|
||||||
ultrabrain = {
|
quick = { model = "zai-coding-plan/glm-5"; };
|
||||||
model = "zai-coding-plan/glm-5";
|
unspecified-low = { model = "zai-coding-plan/glm-5"; };
|
||||||
};
|
unspecified-high = { model = "zai-coding-plan/glm-5"; };
|
||||||
artistry = {
|
writing = { model = "zai-coding-plan/glm-5"; };
|
||||||
model = "zai-coding-plan/glm-5";
|
|
||||||
};
|
|
||||||
quick = {
|
|
||||||
model = "zai-coding-plan/glm-5";
|
|
||||||
};
|
|
||||||
unspecified-low = {
|
|
||||||
model = "zai-coding-plan/glm-5";
|
|
||||||
};
|
|
||||||
unspecified-high = {
|
|
||||||
model = "zai-coding-plan/glm-5";
|
|
||||||
};
|
|
||||||
writing = {
|
|
||||||
model = "zai-coding-plan/glm-5";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
disabled_mcps = [ "context7" "websearch" ];
|
disabled_mcps = [ "context7" "websearch" ];
|
||||||
disabled_hooks = [ "comment-checker" ];
|
disabled_hooks = [ "comment-checker" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user