refactor: mkOpencodeSkills -> mkSkills
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
{"id":"nixpkgs-ng1","title":"Configure agent git identity in nixpkgs repo","description":"Git commits are using p@m3ta.dev instead of m3ta-chiron@agentmail.to. The GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL environment variables are not set in this environment. Need to configure the agent git identity for this repository following the pattern in AGENTS.md","status":"open","priority":2,"issue_type":"task","owner":"p@m3ta.dev","created_at":"2026-04-27T18:16:17Z","created_by":"m3tm3re","updated_at":"2026-04-27T18:16:17Z","dependency_count":0,"dependent_count":0,"comment_count":0}
|
|
||||||
@@ -79,7 +79,7 @@
|
|||||||
|
|
||||||
# Skills (merged from personal AGENTS repo + optional external skills)
|
# Skills (merged from personal AGENTS repo + optional external skills)
|
||||||
home.file.".claude/skills" = mkIf (cfg.agentsInput != null) {
|
home.file.".claude/skills" = mkIf (cfg.agentsInput != null) {
|
||||||
source = cfg.agentsInput.lib.mkOpencodeSkills {
|
source = cfg.agentsInput.lib.mkSkills {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
customSkills = "${cfg.agentsInput}/skills";
|
customSkills = "${cfg.agentsInput}/skills";
|
||||||
externalSkills = shared.mapExternalSkills cfg.externalSkills;
|
externalSkills = shared.mapExternalSkills cfg.externalSkills;
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (cfg.agentsInput != null) {
|
config = mkIf (cfg.agentsInput != null) {
|
||||||
home.file.".agents/skills".source = cfg.agentsInput.lib.mkOpencodeSkills {
|
home.file.".agents/skills".source = cfg.agentsInput.lib.mkSkills {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
customSkills = "${cfg.agentsInput}/skills";
|
customSkills = "${cfg.agentsInput}/skills";
|
||||||
externalSkills = shared.mapExternalSkills cfg.externalSkills;
|
externalSkills = shared.mapExternalSkills cfg.externalSkills;
|
||||||
|
|||||||
@@ -54,9 +54,9 @@ in {
|
|||||||
});
|
});
|
||||||
default = [];
|
default = [];
|
||||||
description = ''
|
description = ''
|
||||||
External skill sources passed to mkOpencodeSkills.
|
External skill sources passed to mkSkills.
|
||||||
Each entry maps directly to an element of the externalSkills
|
Each entry maps directly to an element of the externalSkills
|
||||||
list accepted by the AGENTS flake's lib.mkOpencodeSkills.
|
list accepted by the AGENTS flake's lib.mkSkills.
|
||||||
'';
|
'';
|
||||||
example = literalExpression ''
|
example = literalExpression ''
|
||||||
[
|
[
|
||||||
@@ -66,7 +66,7 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# Helper to map externalSkills from module config to mkOpencodeSkills format.
|
# Helper to map externalSkills from module config to mkSkills format.
|
||||||
mapExternalSkills = cfgEntries:
|
mapExternalSkills = cfgEntries:
|
||||||
map (
|
map (
|
||||||
entry:
|
entry:
|
||||||
|
|||||||
Reference in New Issue
Block a user