My First Impressions of Nix
mtlynch.io
My First Impressions of Nix
1–10 of 354 posts
Re: My First Impressions of Nix
#2Re: My First Impressions of Nix
#3Re: My First Impressions of Nix
#4Seems like link is dead.
Re: My First Impressions of Nix
#5> Huh?
> Which file? And where in the file do I add those lines?
This issue is prevalent everywhere. Even the best documented projects fail into this trap almost immediately.
Re: My First Impressions of Nix
#6Re: My First Impressions of Nix
#7Another pitfall is the usage of flakes, which, on the one hand are (imho) great, recommended everywhere and often times even assumed to be used implicitly, but on the other hand are still experimental. I myself started using flakes not because of the promised benefit (although I did realize the benefit later on) but just because multiple tutorials I've read gave me the feeling that flakes were the de facto way to do Nix from now on - and mind you, that was in late 2020.
I'm using Nix for setting up my work machine (Mac via nix-darwin), my private machines (NixOS), selfhosting that's not in my k8s (also NixOS), and some private projects (dependencies, ci, and containers) - where the issues I've described don't really bother me, but for professional projects, where I'd have to convince and/or instruct colleagues, Nix feels a bit too rough around the edges for me right now.
Edit: I also think it's important to distinguish between Nix the technology (fantastic) and Nix the language (meh) - which is why I'm still itching to try out Guix[1], which is similar to Nix (the technology) in a lot of ways while using Guile[2] as a language.
Re: My First Impressions of Nix
#8The author seems to have some misguided ideas about Nix. Nix is not fast because it is stateful. It is fast because it is functional and reproducible, which allows for caching without compromising correctness. I don't want to split hairs, but referentially transparent caching like this is not quite what I'd call state.
Yes, there is some statefulness in system activation, but this is not what makes Nix Nix -- quite the opposite.
Re: My First Impressions of Nix
#9> A lot of Nix documentation I’ve found says things like, “Simply add these lines!” > Huh? > Which file? And where in the file do I add those lines? This issue is prevalent everywhere . Even the best documented projects fail into this trap almost immediately.
Re: My First Impressions of Nix
#10planning to learn/use ansible, wonder if Nix is ready to use ? have most functions/features ?