Remix.run Logo
▲ cloudfudge an hour ago

The difference is in what "install" means. With most install methods, you're just blasting bits onto a disk and the connection between those bits, the package that created them, and their dependencies, is maybe tracked in a database. A database that can be inconsistent. And uninstalling things doesn't necessarily restore everything to the state that it was in before the install. This is deeply unsatisfying once you've seen how it can be.

As an example, you can install app A that depends on packages P and Q and then uninstall A, but P and Q won't necessarily be uninstalled. Or you can also have app B that depends on a different version of P and there's a conflict. This completely goes away with nix because a thing and its dependencies are represented as a completely standalone closure, and the state of your machine is just the sum of all the closures you want. It's trivial to go back to the set of closures you had 30 seconds ago if you didn't like the result of the change you just made.

It's truly magical.