code-manage-nix
SKILL.md
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
Weekly Installs
1
Repository
sirn/dotfilesGitHub Stars
8
First Seen
13 days ago
Security Audits
Installed on
amp1
cline1
qoder1
opencode1
cursor1
kimi-cli1