+agents-lib

This commit is contained in:
m3tam3re
2026-05-31 14:38:02 +02:00
parent e02a0a29ea
commit 6c6164043b
7 changed files with 1279 additions and 14 deletions
File diff suppressed because it is too large Load Diff
Generated
+18
View File
@@ -21,6 +21,23 @@
"type": "github" "type": "github"
} }
}, },
"agent-lib": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1780229583,
"narHash": "sha256-WxokKtyJ0fRiTNIaf+Tfd05GhZVsqoTP5Q0cXiNipsI=",
"path": "/home/m3tam3re/p/NIX/agent-lib",
"type": "path"
},
"original": {
"path": "/home/m3tam3re/p/NIX/agent-lib",
"type": "path"
}
},
"agents": { "agents": {
"flake": false, "flake": false,
"locked": { "locked": {
@@ -324,6 +341,7 @@
"root": { "root": {
"inputs": { "inputs": {
"agenix": "agenix", "agenix": "agenix",
"agent-lib": "agent-lib",
"home-manager": "home-manager_2", "home-manager": "home-manager_2",
"m3ta-nixpkgs": "m3ta-nixpkgs", "m3ta-nixpkgs": "m3ta-nixpkgs",
"nix-colors": "nix-colors", "nix-colors": "nix-colors",
+5
View File
@@ -16,6 +16,11 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
agent-lib = {
url = "path:/home/m3tam3re/p/NIX/agent-lib";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix.url = "github:ryantm/agenix"; agenix.url = "github:ryantm/agenix";
nur.url = "github:nix-community/NUR"; nur.url = "github:nix-community/NUR";
+3
View File
@@ -80,6 +80,9 @@ in {
in { in {
imports = imports =
[ [
# External Home Manager modules required by selectable profiles
inputs.agent-lib.homeManagerModules.default
# Paths module — must be first, provides m3taHome.paths.srcRoot # Paths module — must be first, provides m3taHome.paths.srcRoot
../modules/paths.nix ../modules/paths.nix
baseModule baseModule
+3
View File
@@ -13,6 +13,9 @@
in { in {
default = { default = {
imports = [ imports = [
# External modules
inputs.agent-lib.homeManagerModules.default
# Paths — must be first, provides "m3ta-home".paths.srcRoot # Paths — must be first, provides "m3ta-home".paths.srcRoot
./paths.nix ./paths.nix
@@ -0,0 +1,36 @@
{config, ...}: {
programs.agent-lib = {
enable = true;
lockFile = config."m3ta-home".paths.srcRoot + "/agent-sources.lock.json";
targets.pi.enable = true;
targets.opencode.enable = true;
profiles.default = {
sources = {
m3ta-agents = {
agents = {
all = true;
};
skills = {
all = true;
exclude = ["brainstorming" "pdf" "systematic-debugging" "xlsx"];
};
};
anthropic.skills = {
all = true;
exclude = ["skill-creator"];
};
basecamp.skills.all = true;
kestra.skills.all = true;
mattpocock.skills = {
all = true;
};
superpowers.skills = {
all = true;
};
vercel.skills.all = true;
};
};
};
}
+1 -14
View File
@@ -20,6 +20,7 @@
imports = [ imports = [
# OpenCode, Pi, and Babysitter agent configurations # OpenCode, Pi, and Babysitter agent configurations
./agents-lib.nix
./babysitter.nix ./babysitter.nix
./opencode.nix ./opencode.nix
./pi.nix ./pi.nix
@@ -27,20 +28,6 @@
coding.agents.babysitter.enable = true; coding.agents.babysitter.enable = true;
coding.agents.skills = {
agentsInput = inputs.agents;
externalSkills = [
{
src = inputs.skills-anthropic;
selectSkills = ["pdf" "docx" "frontend-design"];
}
{src = inputs.skills-superpowers;}
{src = inputs.skills-vercel;}
{src = inputs.skills-basecamp;}
{src = inputs.skills-kestra;}
];
};
programs.mcp = { programs.mcp = {
enable = true; enable = true;
servers = { servers = {