2019-03-04 10:46:18 +00:00
|
|
|
# nix
|
|
|
|
|
|
|
|
> Utilities for the Nix language and store.
|
2019-06-04 10:00:11 +01:00
|
|
|
> More information: <https://nixos.org>.
|
2019-03-04 10:46:18 +00:00
|
|
|
|
|
|
|
- Search for a package via its name or description:
|
|
|
|
|
|
|
|
`nix search {{search_term}}`
|
|
|
|
|
|
|
|
- Start a Nix shell with the specified packages available:
|
|
|
|
|
|
|
|
`nix run {{nixpkgs.pkg1 nixpkgs.pkg2 nixpkgs.pkg3...}}`
|
|
|
|
|
|
|
|
- Optimise Nix store disk usage by combining duplicate files:
|
|
|
|
|
|
|
|
`nix optimise-store`
|
|
|
|
|
|
|
|
- Start an interactive environment for evaluating Nix expressions:
|
|
|
|
|
|
|
|
`nix repl`
|
|
|
|
|
|
|
|
- Upgrade Nix to the latest stable version:
|
|
|
|
|
|
|
|
`nix upgrade-nix`
|