This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / tools / claude / flake-module.nix
1.1 kB 33 lines
1{ self, ... }: 2{ 3 perSystem = 4 { pkgs, system, ... }: 5 let 6 # Get paths to MCP servers 7 gitMcpPath = "${self.packages.${system}.git-mcp}/bin/git-mcp"; 8 tmuxMcpPath = "${self.packages.${system}.tmux-mcp}/bin/tmux-mcp"; 9 10 # Path to CLAUDE.md 11 claudeMd = ./CLAUDE.md; 12 in 13 { 14 packages.claude = self.libWithPkgs.${system}.makeWrapper (self.lib.halalify pkgs.claude-code) { 15 preHook = '' 16 # Configure MCP servers using Claude CLI 17 if claude mcp add git-mcp "${gitMcpPath}" 2>/dev/null && \ 18 claude mcp add tmux-mcp "${tmuxMcpPath}" 2>/dev/null; then 19 echo "MCP servers configured successfully" >&2 20 else 21 echo "Warning: Could not configure MCP servers" >&2 22 fi 23 24 # Set up CLAUDE.md if it doesn't exist 25 CLAUDE_MD_DIR="''${CLAUDE_MD_DIR:-$HOME/.claude}" 26 mkdir -p "$CLAUDE_MD_DIR" 27 if [[ ! -f "$CLAUDE_MD_DIR/CLAUDE.md" ]]; then 28 cp ${claudeMd} "$CLAUDE_MD_DIR/CLAUDE.md" 29 fi 30 ''; 31 }; 32 }; 33}