Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/visortelle/nix-playground
Just a repo for self-education, experiments, etc.
https://github.com/visortelle/nix-playground
Last synced: 9 days ago
JSON representation
Just a repo for self-education, experiments, etc.
- Host: GitHub
- URL: https://github.com/visortelle/nix-playground
- Owner: visortelle
- Created: 2021-09-05T15:27:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-06T17:15:59.000Z (over 3 years ago)
- Last Synced: 2024-10-19T04:50:40.776Z (3 months ago)
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nix-test
Possibly the best tutorial on Nix: .
ZSH completion: .
## Cheat sheet
## REPL
Enter REPL
`nix repl`
Load nixpkgs
`:l `
Build
`:b `
## CLI
Build
`nix build`
Search package
`nix-env -qP --available nodejs`
`nix search nodejs`
Pretty-print deriviation
`nix show-derivation /nix/store/9y4viy19cvi34dy43c9hmi2rrrnm5dgb-test.drv`
Analyze build dependencies
```sh
$ nix-instantiate default.nix
/nix/store/21kj5jdnd04cz3labrf9p2q30vi70vhh-nodejs-project-a.drv
$ nix-store -q --references /nix/store/21kj5jdnd04cz3labrf9p2q30vi70vhh-nodejs-project-a.drv
/nix/store/67c32whv2pa8gfqxinjbzb3pshpfsgcl-bash-4.4-p23.drv
/nix/store/sjj7icjqi6mhkzismr68jqlrq6hg500r-coreutils-8.32.drv
/nix/store/076lzbdih4cdg6ri8w3kmpa191zvkrsl-nodejs-14.17.5.drv
/nix/store/fyd9bif9sv5g6rfl3zh8k2s6nq1szpv7-nodejs-project-a
/nix/store/lmh0zrm1pw5046hpi9cr95gz04c65ynd-nodejs-builder.sh
```GC
`nix-collect-garbage` and `nix-collect-garbage -d`
## Omnomnoms
Improved nix-shell -
Easy dependency management for Nix projects -
Docker compose -
Utils