code-manage-nix
Installation
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