When comparing Nix vs Linux From Scratch, the Slant community recommends Linux From Scratch for most people. In the question“What are the best Linux distributions for desktops?” Linux From Scratch is ranked 63rd while Nix is ranked 75th. The most important reason people chose Linux From Scratch is:
It is an opportunity for the learner to learn what's behind every piece of program in the system, because you will install and configure all the packages manually. It is also as an advantage to expand your knowledge by searching the possibilities of crafting your unique flavor, for example your own package manager and update schemes.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro No side effects when building packages
Nix is a purely functional package management system. This means that the act of building a package does not have side effects, such as destructively updating or deleting files that may be used by other packages.
Pro Isolated development environments
Nix allows the creation of project-specific shell and build environments which are isolated from the rest of the system. These environments are defined declaratively to ensure reproducibility.
Pro Can replace docker in some places
Pro Can use multiple versions of the same package
Because of the functional approach it takes, Nix makes it easy for systems to use multiple versions of the same package simultaneously, and ensure that updating or removing a package can't break other packages.
Pro The configuration works on "All machines"
No more of the traditional: "it works on my machine". When it says reproducible, this is the real deal.
Pro Best for learning the components, libraries and configurations of the whole system one-by-one
It is an opportunity for the learner to learn what's behind every piece of program in the system, because you will install and configure all the packages manually. It is also as an advantage to expand your knowledge by searching the possibilities of crafting your unique flavor, for example your own package manager and update schemes.
Pro For those who wonder what it takes to create an actual Linux distribution
It's a very useful learning experience; showing the user what is required and in what order, to obtain a running Linux system - from the inside out.
Cons
Con Does not work well for services on non-NixOS systems
When using Nix with anything other than NixOS you can run into difficulties with trying to start up services. For example, you can install docker with Nix, but it won't integrate with the host system's systemd leaving you to handcraft awkward workarounds in order to start the background service that docker requires. This seems like a critical flaw when using Nix on anything that is not NixOS, and it's unfortunate because this affects many of the packages many users would be most interested in using Nix to handle.
Con Steep learning curve
Con Cannot handle filetypes that have different semantics across different versions
While the functional approach that Nix takes is great for sandboxing binary artifacts of packages, it seriously lacks any power in handling configuration files or user data. It's difficult to upgrade and downgrade files where semantics and syntax can change between versions. Especially in Debian/Ubuntu it can cause severe problems where the upgrade process blocks and the user needs to resolve the 3-way merge.
Con Feels slightly over-complicated
Con Not recommended for Beginners
By creating a Linux system from scratch you will be managing and compiling all of the systems packages by hand, so advanced Linux knowledge is recommended.
Con Takes a while to create the system. Only for those people who would like to create their very own distribution, or just to understand what makes a Linux system tick.
Linux From Scratch, requires the user to download and compile, all the various required system libraries and programs in a ch-rooted environment. This is usually done from within an existing and already running Linux system. This is not really a con, just a note to the new user.
