Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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