code-manage-nix
Search for and add Nix packages to the environment.
Process
-
Identify Package:
- Get the common name from user (e.g., "ripgrep", "python requests")
- Use
nix-locate(via Bash) or WebSearch to find the exact attribute path innixpkgs(e.g.,pkgs.ripgrep,pkgs.python3Packages.requests) - Crucial: Verify the package exists in the current nixpkgs channel/version
-
Detect Configuration:
- Locate
flake.nix,shell.nix, ordefault.nix - Identify where
buildInputsorpackagesare defined
- Locate
-
Modify Configuration:
- Add the verified package attribute to the list
- Maintain alphabetical order if existing list is sorted
- Use
write_fileorreplaceto apply changes
-
Verify:
- Run
nix flake check(if flake) ornix-shell --run "true" - If verification fails, undo and report
- Run
Output
- Package Found: Exact attribute name
- File Modified: Path to config
- Verification Status: Success/Fail
More from sirn/dotfiles
code-plan
Generate comprehensive implementation plan based on analysis. Use when user asks to plan this, create a plan, how should I implement, or wants implementation guidance.
19code-commit
Commit current changes using jj. Analyzes changes, suggests commit messages following repository conventions, proposes splits if needed, and creates commits. Use ONLY when user explicitly asks to commit changes or create commits.
18gemini-reference
Reference for calling the Gemini CLI agent from other agents. ALWAYS read BEFORE invoking Gemini to ensure correct JSON protocol, session management, and subtask delegation patterns.
18code-quality
Run comprehensive quality checks by orchestrating review, verification, testing, and linting. Use when user asks to check code quality, run full checks, or verify code health.
18code-design-api
Design API contracts and specifications. Use when asked to design REST, GraphQL, or RPC endpoints.
15claude-code-reference
Reference for calling the Claude Code agent from other agents. ALWAYS read BEFORE invoking Claude Code to ensure correct JSON protocol, session management, and subtask delegation patterns.
15