by linsomniac · 2d ago · 0 comments
I assume it is a reference to some of the project administration issues they were having ~a year ago? Or is there something else I'm missing? TBF, I was saying, in reference to switching away from Ubuntu: I'm thinking about NixOS for servers. Because it's been stellar on my desktop.
Now, I doubt my company qualifies as a "legit enterprise", but we will probably stick on Ubuntu because it's a supported platform for Kafka, and that's really the only thing that we need "supported platform" from.
But I've often thought back to that comment and wondered if there was anything of substance behind it.
Enterprise typically means established (already has a working solution) and less likely to adopt new technologies. Large enterprises outside of tech don’t make decisions only based on technical merit. NixOS has very few enterprise/commercial providers - RHEL and Canonical will absolutely sell you a support contract.
Nix is also very opinionated. If your org is already Docker or k8s based then Nix is a harder sell. (Even if Nix is the better option… are you going to retrain a 50+ SRE team?)
Frankly, I don’t know who would still use Ubuntu on servers at all in 2026. It’s a very GUI/desktop-focus distro. I’d expect Kafka to almost exclusively be deployed using the container image which is Alpine based.
for local one node cluster, k8s adds too much overhead and management, i like podman/quadlet for that, i dont use nixos for daily driver, so it may have a feature that im not aware of that can replace podman/quadlet
All the "digital-native" big enterprises at this point have a good-enough solution to the the problem of reproducible, hermetic builds, with a lot of tooling built up around it. I'm not sure that NixOS would be enough of a value add to justify retooling such a foundational and already-standardized part of their stack.
So my prediction is that some new company will build their tooling around NixOS, then become a big successful company, and then others will copy them because it's now proven at "enterprise" scale.
Until then it is yet another flavor of tech to add to do the same things they are already doing.
There is no orchestration which is basically the main thing there is interest in for this kind of tech.
Or do you mean things like CPU architecture and time() syscall?
Orchestration is always going to be a stateful problem. Nix on k8s works fine but it would be cool to do something more Nix native.
From an enterprise perspective this is undesirable as frequently rebuilding the world is costly in terms of storage and compute. "Imperative" systems like apt, Terraform, etc. provide similar capabilities at less cost. Some companies are willing to pay the added overhead of frequent rebuilding for the reproducibility guarantees, but "real" enterprise systems like Bazel or Buck 2 implement change management and propagation to avoid rebuilds. The Nix system in contrast is somewhat bespoke and idiosyncratic due to its academic origins and would require a major rewrite to avoid this design flaw, which seems impossible given the current project priorities.
Another issue has been that the Nix language is slow - the C++ interpreter does tree-walking and Nix's lazy evaluation uses a lot of memory and makes optimizations difficult. In contrast Starlark is a simpler language and the implementations use more efficient bytecode implementations.
Overall NixOS is just like its logo - a special snowflake. It is usable in personal environments and for various applications but if you try to use it at scale you will run into a lot of technical limitations that make other solutions more workable.
Imperative systems do not "provide similar capabilities" unless your level of resolution is "well, it said it succeeded and it started the service". You're giving up a tremendous amount of meaningful functionality if you try to replace nix with apt.
Bazel and Buck 2 are not immune from rebuild-the-world (e.g. if you update to a new libc with new headers). And at some point, rebuild-the-world is actually the correct and necessary behavior.
Far from being "nearly impossible to solve" "due to its academic origin" or "given the current project priorities", nix already has an experimental content-addressed derivation feature shipping in every recent version, which continues to see development progress.
From my perspective there is not much difference between writing a nixos config and writing ansible+terraform configs. It is true that under the hood they work differently but being able to install a package with apt rather than having to use the nixpkgs repo is not a loss of meaningful functionality but rather a gain. In contrast installing a random binary .deb is complex in Nixpkgs (although it is possible). And if you use NixOS you are locked into the non-FHS layout whereas if you use Debian as the base system you can still install Nix packages where convenient and then also traditional packages.
And it's true rebuild-the-world is unavoidable in some cases but it is a game of averages, on the whole Nix uses more resources than imperative-style package managers. Like https://github.com/NixOS/hydra/issues/421 hydra uses 375-400 GB but Arch Linux mirror uses less than 300. https://wiki.archlinux.org/title/DeveloperWiki:NewMirrors#Mi... At current S3 prices this extra 100GB is only $27/year but then there are the bandwidth and compute costs of frequent rebuilds and re-downloads which are harder to measure. And these costs can be easily avoided "just" by switching package manager and not using Nix and putting up with the occasional version mismatch issue (which Nix also has, and arguably multi-versioning is about as tricky in Nix as with apt etc.).
The "experimental" content-addressed derivation feature has been experimental since 2021, that is 5+ years ago, and it is still early prototype phase. I don't see how this length of time can be anything other than a project priorities or fundamental design issue. Normal package management features, even major ones, do not take nearly this long - for example DNF yum started 2011, was widely available in 2013, and was made the default in 2015.
On a regular Linux distro there is no guarantee that the shared libraries for a prebuilt binary are correct. There’s no guarantee that /bin/bash or glibc.so is compatible with all software.
You can’t produce formally verified software if your build system uses /bin/bash or random system environment libraries. From a formal verification perspective, all other projects are wrong and Nix is more correct. This is the only serious approach - the old way was always a hack.
This is a horrible user experience. The user should not have to wrap anything. They should just be able to double click and have the program run.
>On a regular Linux distro there is no guarantee that the shared libraries for a prebuilt binary are correct. There’s no guarantee that /bin/bash or glibc.so is compatible with all software.
And the solution is to create a proper container that developers want to use. The whole idea that a developer needs to have their software package with nix, and then all of their dependencies package with nix, and then after all that work it's not even something that can be used by all of their users.
This isn’t how any Linux distro works? You are just perhaps lucky on regular distros since they all tend to use the same glibc version… until they don’t. Or do you mean Flatpak/AppImage?
On NixOS, you can perfectly implement this by using “nix-ld” which allows you to automatically run 3P binaries in a customized FHS environment.
> And the solution is to create a proper container that developers want to use.
Containers are even less portable then Nix! Containers depend on OS specific features like namespacing. NixOS is Darwin native; I can do full MacOS native hermetic builds and configure MacOS services and environment all without any Linux VM.
Containers are just more well known - that’s just a preference. I’m sure developers objected to using containers back in 2008. Containers don’t magically make Node/Python builds reproducible - they depend on caching intermediate results.
Containers do nothing to make cross compiling easy. Containers don’t allow composing anything together other than containers - so your SOL if you do kernel or embedded development.
I actually agree that Nix is an imperfect - it’s good enough to eat all software (see stats) but long term I agree it should be re-implemented to have a type system language, written in rust, etc.
What constitutes a proper container?
> The whole idea that a developer needs to have their software package with nix, and then all of their dependencies package with nix, and then after all that work it's not even something that can be used by all of their users.
How does this not apply to every other packaging mechanism out there?
>would it be better if we simply asked people to change the shebang in their script
We are not talking about one weird edge case. We are talking about millions of scripts.
>Everything can be patched downstream.
This is a waste of resources when you could just support it without any changes.
AFAIK there are very few, if any, of those in modern windows. It just keeps existing APIs stable, so developers can target the OS and be sure their programs still work next week.