215 points · by tkz1312 · 2y ago · 166 comments
I've been critical of Nix for a variety of reasons along the way but one of those reasons is how so many people (and consultancies) seem hell-bent to set up their own little fiefdoms within the community.
The community is already niche, we certainly didn't need people purposely driving further fragmentation and incompatibility with these frameworks with bad bus factor and NIH designs.
I've seen a lot of tribalism and cargo culting around some of the other efforts in this vein, too.
Unfortunately, he's also part of the mob that chased the founder out of the Nix project and decided it should be yet another battleground for identity politics.
Like you, seeing the community entertain these stupid political fiefdoms makes me want nothing to do with NixOS.
However, I might stick with it out of laziness though until SteamOS runs on 3rd party hardware. The Jovian project is a Nix-based SteamOS clone that's been working well on my Legion Go, and I don't want to spend the time back in tinkerland finding something to replace it.
I resented people building fiefdoms because they're often commercially motivated and used to drive consulting engagements. They fragment the community on a deeply technical level, ruining code reuse and interoperability, for negligible technical improvements. I don't have any idea what the authors' views on project governance or human rights are, that wasn't a factor for me.
The NixOS Conflict in Under 5 Minutes
It's unofficial and I've not personally tried it, but isn't that https://github.com/HoloISO/releases ?
The issue is that: Nix/NixOS is here and JUST good enough. So replacing it will be hard. What is come up with has to solve things so much better that the community who has invested in NixOS and others sees enough light that it is worth moving over.
That's gonna be rough. Given how hard nix (the language) is to deal with, I won't call it impossible, but... I will say, the successor is more likely to succeed if NixOS totally implodes, and I might go as far as to say... only if it implodes or offers substantial back compatibility so people can migrate.
Same for me. We were exploring the use of it across our company for doing the building part of our containers, but the seeping in of identity politics made me rip the whole initiative up, it's simply too risky as you can see very likely paths towards fragmentation and disruption if you use this tech. Such a shame.
"seeping in of treating everyone decently made me rip"
FTFY
I tried using it, but the slow-repos, and weird bugs on my laptop (which needs proprietary blobs) put me off. I very much would prefer using scheme to Nix lang but the eco-system is far smaller.
I wish they had a separate spinoff that just made sure their software can run on Windows and MacOS, something like exists for emacs, but I think that the challenges are pretty big as they appear to rely on Linux-only APIs?
If Nix disappeared overnight I'd probably be using chezmoi to fill in somewhat for Home Manager and mise to fill in somewhat for devShells, and some ansible to try to fill the gaps, and fairly bitter about it.
I'm philosophically opposed to containers in the dev feedback loop, as I want native installation and performance for my language toolchains and editor and such.
The most recent commits in the pinned Github repos are two months old. For a project that considers itself "Alpha" and "Not yet ready for daily use" that's a pretty long time of inactivity.
Though the main contributors are pretty active with nixpkgs, so a lack of commits here doesn't necessarily mean they aren't working on improving snowflakeos, but working on getting improvements they need implemented upstream.
Also, how hard can it be to touch up on docs or some other small parts at least once a week? If you don't have the time for that maybe don't start a new project?
You want weekly doc updates? It’s open source my friend, make a PR or shut the hell up.
Thanks for making my point for me. This is an absurd standard.
“Don’t start a project uness you can commit to weekly updates for perpetuity.”
But for a full system, given universal blue and other variants (e.g. bazzite seems to be having a lot of success on the steam deck), does nix still make sense?
In many ways, Nix is often "second best at everything". -- Since Nix can be difficult to deal with, it may often be a better choice to use some other tool for any particular use case.
e.g. maybe using asdf is a better way to fetch tools (compared to nix-shell), or docker-compose is a simple way of running project-specific services locally (compared to devenv), or fedora silverblue is a simple way of running an immutable OS (compared to NixOS).
I'd like to think that the benefits from buying into Nix allow easily getting the advantages. e.g. Nix is a more expressive way to build a Docker image or a VM compared to using a Dockerfile or Packer.
For system wide configuration, NixOS allows system-wide configuration declared from a single starting point (possibly composed of several modules), and has those immutable OS benefits like trivial rollbacks.
For example, we were at a wework, and he could *NOT* connect to the corporate wifi and had to just use the 'guest' access. The corporate network requires a cert and is tied to your wework account id. I could do it on Ubuntu by following instructions. He tried following the same instructions, me even helping him over his shoulder, and it just simply did not work, even after we walked through all the same steps that I had done on ubuntu. We were both on gnome desktops. And using similar devices. So something was wrong with how the OS handled the networking, not related to the GUI or hardware.
Your colleagues problem is not spending years on his config!
But, yeah, Nix can be really nasty to troubleshoot because of the lack of information. The Nix documentation is still PITA, and the much of usual Linux guides (which are everywhere on the internet) won't apply to Nix systems. You have to learn a lot.
If what you want is a simple system with a web browser and some games, this should mostly work, but Fedora Silverblue would provide much more integrated and solid DE for that purpose. Being image-based release-based distro, it does offer pretty decent UX. Nix is rolling release, and everything is scattered just like Arch.
Also, things like disk encryption is easy to get wrong, leading to another boot from the usb/mount everything/fix loop.
Nix has a graphical installer, which makes most of these choices for you. Different projects have added similar installers on top of Arch too, making its indtallation as easy.
And in actual use Arch is much simpler.
What distro provides a GUI to write custom package specs for you?
But on what way nix is immutable I never know, anyone kind enough to explain ?
Since the directory is titled based on the hash of the various inputs that go into building the package, when I run an upgrade it's not going to overwrite the old version of mpv, but instead it's going to put the new version in the nix store as well, at a different directory. Until you collect garbage, to clear out the old versions of things you're not using any more, nothing is deleted.
So while you can add and delete entries to the nix store, each entry itself is read-only once it's been built, and thus immutable.
a Nix Flake is basically just a file to pin packages against a specific version (ie go.mod cargo.lock etc...) you then write a config that defines your system state and packages that you want to be available.
What's wrong with it? I'm not fond of the standard library (esp. the mkOverride and its friends), but the language itself feels fine. (Or am I just too used to it?)
Personally, I would've preferred statically-typed language with proper GADTs, but Nix is far from what I'd call "insanity". Malbodge is insanity, JavaScript is a mess (mainly because of its birth defects), Nix is... not a dream language, has a few odd bits that one needs to get used to, but feels quite okay.
But try to call one file from another - it is confusing - the parameters are not explicit like a function call - they suddenly appear - adding more arguments is odd. Modules are not simple imports they add options and config to "help" you.
I do wish they had used a well documented language with some form of modules rather than invent their own idiosyncratic one.
However, I don't personally use it. I've used NixOS to build an OS that is exactly what I want, and I can easily reproduce it on any machine and seamlessly run any of my projects on any of my devices. It has completely solved dependency hell for me.
I don't exactly understand the complaints that Nix is hard to use. So is the C programming language. So is advanced mathematics. These things aren't meant for everyone to use. They are specific tools that solve specific problems and they do it well.
Personally I think Nix should be a lot smaller. I think it should be a small set of tools that allows you to build reproducible systems and avoid dependency hell, and not too much more then that. Everything else should be up to the user.
If you don't see the use, then there are so many other wonderful Linux distributions that will probably suit you better.
I don't mean to be too harsh, I just think Nix is one of the most incredible pieces of software I've ever used, and I get tired of the hate.
That's great, but you've already passed the steep learning curve, gotten familiar with all the tooling and concepts, and know how to troubleshoot things when they go wrong. For many new users of Nix, these are major hurdles for adoption.
The core principles of Nix are great: reproducibility, isolation, ability to revert to a previous state, etc. The problem is the UI to achieve all of that.
I haven't used SnowflakeOS, and it's the first time I'm hearing about it, but if it can have the same benefits of NixOS while making the UI friendlier for new users, then it's a huge win in my book. I think that all operating systems should have these features, whether Nix itself is the one to deliver them or not.
FWIW, I've used Nix(OS) for many years, and still can't say that I'm comfortable with it. It always takes me time to research and tinker when it behaves in unexpected ways, or to find out how to do a certain thing with it. This should just not be the case, even though it's partly on me for not sitting down to understand it thoroughly. The thing is that most people, even those technically minded, don't have that kind of patience. So anything developers can do to improve usability can bring these benefits to a larger user base, which is a noteworthy goal.
I tend to give my positive perspective about Nix whenever I see too much hate because I think it's really a wonderful tool, up there with git and emacs.
Sometimes the critiques I see are akin to "pointers in C are so confusing. I wish I had a nice GUI to be able to program with them". To me that critique misses the point of the power of the underlying software.
I'm not going near nix probably for another 3 years. It has a lot to fix before I can invest time into trying to learn it yet again