NixOS from zero: Nix, declarative config, flakes, Home Manager

11 steps · about 8 h 15 min · Beginner

  1. 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.

  2. Learn Nix (guide, nixos.org, 15 min)

    The official map of manuals and learning resources shows how Nix, Nixpkgs and NixOS fit together.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. 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.

  11. 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.