ryan4yin / nixos-and-flakes-book

:hammer_and_wrench: :heart: Want to know NixOS & Flakes in detail? Looking for a beginner-friendly tutorial? Then you've come to the right place! 想要学习使用 NixOS 与 Flakes 吗?在寻找一份新手友好的教程?那你可来对地方了!

Home Page:https://nixos-and-flakes.thiscute.world

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minor improvement: lazy evaluation

alecandido opened this issue · comments

First of all, thanks for your great work!
I'm reviewing many of the things that I learned here and there, finally in a consistent document.

Just one quick suggestion, about the following sentence:

By default, a flake will look for a `flake.nix` file in the root directory of each of its dependencies and execute its `outputs` function.

The meaning is perfectly clear, but, to be precise, Nix is lazy evaluated, so the various output functions are not executed, at least not until the outputs are actually used (and only for those that are used).

I know it is a bit pedantic, but whenever I study something new, I really appreciated simple and straightforward material (and your book is a great example), and even more when it's not sacrificing accuracy at all (because, otherwise, I will pay later the price of taking back something I considered to have learned before).