What problem does it solve?
Nix enables running packages and evaluating expressions without permanent installation, reducing setup time and improving reproducibility.
Core Features & Use Cases
- Temporary package execution: Run tools from nixpkgs without altering the host system.
- Isolated shells: Spin up shells with multiple packages for focused workflows.
- Expression evaluation & scripting: Use nix eval to inspect attributes or compute values from Nix configurations, and nix shell for interactive work.
- Use Case: You need to prototype a toolchain or test a derivation in a clean environment before integrating into a project.
Quick Start
Use the nix skill to run a package once, create an isolated shell, or evaluate expressions.
Run a package: nix run nixpkgs#hello
Create a multi-package shell: nix shell nixpkgs#git nixpkgs#vim --command git --version
Evaluate an expression: nix eval --expr '1 + 2'