NixOS from zero: Nix, declarative config, flakes, Home Manager
11 steps · about 8 h 15 min · Beginner
- Videos — >_ Wil.Dev (video, Wil Taylor, 40 min)
Start with his overview of Nix and NixOS and why you might use them, before touching any commands.
- Learn Nix (guide, nixos.org, 15 min)
The official map of manuals and learning resources shows how Nix, Nixpkgs and NixOS fit together.
- First steps — nix.dev documentation (tutorial, nix.dev, 1 h 30 min)
The official starting series teaches basic Nix commands, throwaway dev environments and reproducible scripts, so NixOS makes sense later.
- Further reading — nix.dev documentation (reference, nix.dev, 30 min)
It links curated Nix language tutorials and one-pagers, so you can read the language that every NixOS config is written in.
- NixOS virtual machines — nix.dev documentation (tutorial, nix.dev, 45 min)
Build a configuration.nix from first principles and run it safely in a VM before touching real hardware.
- Nix Manual (doc, nixos.org, 40 min)
Use the official manual as the reference for package management, rollbacks and the Nix expression language as questions come up.
- NixOS Introduction - Home manager - YouTube (video, YouTube, 25 min)
Home Manager moves your user packages and dotfiles into declarative config, the usual next step after the system config.
- NixOS Introduction - Nix Flakes - YouTube (video, YouTube, 30 min)
Flakes pin your inputs for reproducibility, and this video shows them used with Home Manager on NixOS.
- Introduction to Flakes — NixOS & Nix Flakes Book (guide, Ryan Yin, 40 min)
A written, beginner-friendly deep dive on flake structure to consolidate the videos.
- Mastering NixOS Flakes (blog, m3ta.dev, 2 h)
A video course on building a flake-based setup, including Home Manager, to practise end to end.
- Resources - Official NixOS Wiki (reference, NixOS Wiki, 20 min)
Finish with a curated list of workshops, the Nix Hour and production handbooks for going deeper.