mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 14:55:24 +02:00
nix: add page (#2808)
This commit is contained in:
parent
15e638ca64
commit
4f29c32f00
1 changed files with 23 additions and 0 deletions
23
pages/common/nix.md
Normal file
23
pages/common/nix.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# nix
|
||||
|
||||
> Utilities for the Nix language and store.
|
||||
|
||||
- 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`
|
Loading…
Add table
Reference in a new issue