There are some articles you want to read first:
- https://www.tweag.io/blog/2020-05-25-flakes/
- https://www.tweag.io/blog/2020-06-25-eval-cache/
- https://www.tweag.io/blog/2020-07-31-nixos-flakes/
Nix Flakes is currently an experimental feature, so this tutorial assumes that you are using the unstable
channel.