dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
modules/apps/ai/_common.nix (1093B)
1{
2 lib,
3 pkgs,
4 ...
5}: let
6 grill = pkgs.custom.ai-grilling;
7in {
8 options.ai._skills = lib.mkOption {
9 description = "Shared agent skills";
10 type = lib.types.attrsOf lib.types.path;
11 default = {};
12 };
13
14 config = {
15 ## Agent Skills
16 ai._skills =
17 lib.mapAttrs (name: _: "${grill}/${name}")
18 (lib.filterAttrs (_: type: type == "directory") (builtins.readDir grill))
19 // {humanizer = pkgs.custom.ai-humanizer;};
20
21 ## Model Context Protocol Servers
22 programs.mcp = {
23 enable = true;
24 servers = {
25 # NixOS MCP
26 nixos.command = lib.getExe pkgs.mcp-nixos;
27
28 # Library documentation
29 context7.url = "https://mcp.context7.com/mcp";
30
31 # GitHub MCP
32 github = {
33 url = "https://api.githubcopilot.com/mcp/";
34 bearer_token_env_var = "MCP_GITHUB_PERSONAL_ACCESS_TOKEN";
35 };
36
37 # Figma MCP
38 figma.url = "https://mcp.figma.com/mcp";
39 };
40 };
41
42 ## Utilities
43 home.packages = with pkgs; [
44 poppler-utils # PDF to Text
45 repomix # Repo to XML
46 ];
47 };
48}