YOUR JOURNEY
01 / 18
01NIX FUNDAMENTALS 4 MIN READ
LESSON 01 / A DIFFERENT WAY TO THINK

Your system.
Reproducible.

You know Linux. Now, meet a different way to build it.

What if your environment wasn’t a series of commands you hoped to remember, but a description you could rebuild, share, and roll back?

Let’s unpack that
~$ A little Linux. A little curiosity. That’s all.
THE NIX MODEL01 / 03
Drag to rotate

Name the ingredients, including their dependencies.

sourcecompilerlibrariesbuild recipe
One package manager.
An entire operating system.
A reproducible way of thinking.
01.1THE SHIFT

Describe the destination.
Let Nix work out the journey.

A familiar Linux workflow is a sequence: install a package, tweak a file, upgrade a library. Two machines can drift apart even when you intend to configure them the same way. The history matters.

With Nix, you describe the inputs and how software is built. An environment becomes something you can keep in a file, review in Git, and recreate. You still use a terminal, processes, files, and your favorite editor. The change is how those pieces arrive.

Next section: Think recipes, not installation history.
01.2THE MENTAL MODEL

Think recipes, not installation history.

Imagine sending a colleague a recipe that names the compiler, source, and libraries instead of a list of commands that worked on your laptop. Nix uses that dependency graph to produce store objects. Compatible results can often be downloaded from a binary cache.

Reproducibility is a design goal, not a promise that every upstream build is bit-for-bit deterministic. Undeclared inputs, timestamps, hardware, and mutable application data still matter. Pinning inputs is one part of the solution.

TAKE THIS WITH YOU

A Nix environment is described by its inputs, rather than only by the history of the machine.

Go a little deeperOfficial Nix tutorials
UP NEXT

Three names, three jobs

Nix, Nixpkgs, and NixOS belong together. They do different jobs.

Next lesson