feat(agent-skills): wire skills flake for global agent skills
Add the skills flake as an input and a module that imports its home-manager module into every host via home-manager.sharedModules, exposing programs.agents.skills. The global skill selection lives in modules/agent-skills.nix and is empty for now; per-skill granularity comes from the flake's own listOf-package option, and the placement self-gates on the agent harness being enabled.
This commit is contained in:
15
modules/agent-skills.nix
Normal file
15
modules/agent-skills.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ config, inputs, ... }:
|
||||
# Global agent skills from the skills flake, placed under the agent harness's
|
||||
# skills directory so they are active in every project. The flake's home-manager
|
||||
# module self-gates on the harness being enabled and installs nothing for an
|
||||
# empty selection, so a host without one carries no skills either way.
|
||||
let
|
||||
user = config.user.name;
|
||||
|
||||
# The skills installed globally, as derivations from the skills flake.
|
||||
skills = [ ];
|
||||
in
|
||||
{
|
||||
home-manager.sharedModules = [ inputs.skills.homeModules.default ];
|
||||
home-manager.users.${user}.programs.agents.skills = skills;
|
||||
}
|
||||
Reference in New Issue
Block a user