by justinwoo

justinwoo / nix-shorts

A collection of short notes about Nix, down to what is immediately needed for users.

168 Stars 8 Forks Last release: Not found Creative Commons Attribution Share Alike 4.0 International 26 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


A collection of short notes about Nix, down to what is immediately needed for users.

The aim of this collection is to provide some instantly usable information with clear code demonstrations.

While you can read the posts in this repo in any order, you might start from how to build your first derivation, to understand how Nix derivations work:

Do you find these posts useful? Would you like to support me and also ask me for help? Please consider supporting me on GitHub Sponsors:

How to read articles in this repo

All articles are meant to be easy enough to approach with clear examples of terminal commands, code, or file setups. When project setups are needed, appropriate directories will be in this repo and referenced.

When applicable, usernames are replaced with

and hashes replaced with
. E.g.
$ readlink ~/.nix-profile
$ readlink -f ~/.nix-profile

...will be shown as

$ readlink ~/.nix-profile
$ readlink -f ~/.nix-profile


Small fixes and elaborations can be contributed via PR. Content suggestions can be done via issues. However, many topics that are not critically important to a new user will not be written about here.

Installation of Nix


To install Nix, run curl | sh as a non-root user
and follow the instructions. Alternatively, you may prefer to download the
installation script and verify its integrity using GPG signatures. Instructions
for doing so can be found here:

For more esoteric information, readers should try looking through the Nix Pills.


Why not Nix Pills?

Readers of Nix Pills should well know that the purpose of the Nix Pills are clearly stated multiple times in its contents:

These articles are not a tutorial on using Nix. Instead, we're going to walk through the Nix system to understand the fundamentals.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.