mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 23:14:57 +08:00
Fix subagents
This commit is contained in:
parent
cfeda8049c
commit
7b38d439de
1 changed files with 7 additions and 2 deletions
|
|
@ -1,8 +1,13 @@
|
|||
{ flake, pkgs, lib, ... }:
|
||||
let
|
||||
subagentsDir = ./subagents;
|
||||
agents = lib.flip lib.mapAttrs' (lib.filterAttrs (fileName: fileType: fileType == "regular" && lib.hasSuffix ".md" fileName) (builtins.readDir subagentsDir))
|
||||
(fileName: _: lib.nameValuePair (lib.removeSuffix ".md" fileName) (builtins.readFile (subagentsDir + "/${fileName}")));
|
||||
agents = lib.mapAttrs'
|
||||
(fileName: _:
|
||||
lib.nameValuePair
|
||||
(lib.removeSuffix ".md" fileName)
|
||||
(builtins.readFile (subagentsDir + "/${fileName}"))
|
||||
)
|
||||
(builtins.readDir subagentsDir);
|
||||
in
|
||||
{
|
||||
programs.claude-code = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue