493 points · by lostmsu · 2d ago · 244 comments
In the future I can see something like NixOS going mainstream by hiding all the scripting behind "Advanced" settings, and letting users control their OS using AI. I'm actually surprised I haven't seen that implemented yet, as I think it has a lot of potential.
I even had an agent build it's own sandbox. It's a systemd container that pulls in most of my host config, but only has access to a couple directories in my real home. There are so many "container/vm for your agent" projects on github: I built my own in an hour. The file is about 100 lines long; that's it.
Every change I make is committed and pushed. I have my OS history going back 6 years. My laptop and servers stay in sync with my setup for free. If I buy a new laptop (maybe someday), setup takes an hour, almost all unattended.
Depending on the role it may have a different set of packages, my edge firewall is obviously stripped way back.
But like you whenever there is friction, I now have my agent cook up a recipe or tool to remove it, and add it to the Flake repository.
Secrets are managed via a custom built system I have that needs going through a YubiKey to decrypt .age files on the fly.
On all machines that have similar roles I have the same tools, configured the same.
It’s so great. AI fixed the usability issue with Nix and NixOS, now it’s become a completely tailored to me computing environment.
This sounds pretty cool! Anything you can share or explain in more details?
I use a NixOS VM to contain my dev work with my agent, which itself is setup by Nix. This protects against supply chain attacks from package installs and other things that might go sideways with linters and other tooling.
It's nice to have a personal dev box and a travel laptop both using the same set up with tiny differences and then being able to do the same for CLI tools on a work laptop running within macOS.
It's just a single non-committed config file and a committed shell script with no git forks needed to customize it https://github.com/nickjj/dotfriedrice. A bunch of friends are using it and hundreds of others based on GitHub's stats.
Since I backup my home directory I can blow out and create a new system in however long it takes to run through the Arch installer and then invoke 1 command to set everything up. About 10-15 minutes to set up a fresh machine.
I'd consider NixOS if cross OS compatibility wasn't a concern but a shell script and Arch has been great a combo for building a custom set up from the ground up. It's something I've been doing for my dev environment for around 8 years now but only introduced a GUI in the last year once my ~12 year old hardware was compatible with native Linux so I could finally drop Windows with WSL 2.
It is possibly worth it if you don't want to go through the nix learning curve, but after you're over that curve the value prop is very different.
Specifically thinking about “throwaway” 20-30GB VPS that might end up hanging around for years and multiple projects
Nix makes you bend over backwards to do things the “right” way. Some people love that because it preserves the organization and purity of the configuration, while some people prefer pragmatism and DIY parentheses-laden contraptions.
There is also the GNU effect, people who strongly prefer the GPL and FSF-adjacent projects will probably be drawn to Guix.
I never got the hang of the Nix language and I also never really understood flakes. On the whole I found Nix very friendly if you follow the well-trodden path and profoundly intimidating if you do anything outside of that.
Having used Guile for a few years I think I still feel that using a general purpose programming language is a better choice than inventing one, however I think Guile is not super ergonomic. It's hard for me to tell whether the project would have worked at all with something like Python, but it's hard to imagine we would be worse off (just given the sheer amount of leverage you get from libraries).
Generally speaking Guix is much less developed than Nix is. I think with a sufficiently good skillset in Guile it is probably a lot more hackable than Nix, but i'm not certain of that.
Regarding shepherd as an alternative to systemd: I love the shepherd, and it is a sufficiently small project that you can kind of drive the direction a bit if you use it a lot. I think it's important to have systemd alternatives.
Imo it looks like guix is still far behind and not going to get traction at all, even after years. You can find it in the range of Ubuntu.
guix banned all ai contributions (https://codeberg.org/guix/guix/pulls/11407) in comparison to nixpkgs that has a somewhat friendly ai policy.
guix and nix both use the nix-daemon, guix has a proper language (guile scheme) in comparison to the weird language you can't really make actual programs in that is nix. most people that said, don't really like lisps as an experience (i do!)
the ergonomics of nix got slightly better with the pipe-operator(s) feature, at least. it reads like a somewhat deranged OCaml. here's an example of me writing F#-like nix; https://codeberg.org/kittywitch/ala/src/branch/main/flake.ni...
guix tends to contaminate the system environment more than nix on the whole, typically adding packages (think MELPA, ELPA, ...) to your emacs is literally adding them to the environment in guix, but in nixos this is some pkgs.emacs.withPackages type guy and doesn't contaminate the system environment
guix is a lot smaller. many things aren't packaged. a majority of people on guix use nonguix (because guix is gnu-affiliated, the proprietary software stance is kept and nonguix provides proprietary drivers/software/...); https://guix.gnu.org/blog/2025/guix-user-and-contributor-sur... for proprietary software. 13% of guix users also use nix for packages alongside guix (And people use flatpaks, whatever, ...)
they are both relatively comfortable systems but if you want "frictionless" and are all for agents you'll end up liking nixos more than guix.
guix uses shepherd as an init system and service manager (here's a post on shepherd not liking LLMs: https://shepherding.services/news/2026/08/shepherd-not-robot...) and not systemd (which is what NixOS uses)
guix also has guix home, which is an equivalent to home-manager in nix-land, but it's built in and first party.
guix has no alternatives to flakes and flakes are kind of useful although the implementation kinda sucks and is still unstable after ungodly quantities of time
it goes without saying that guix is presumably less accepting to the users of LLMs
but like, if you're a lisp machine enjoyer, guix is where it's at
(usage disclosure: i have used nixos for 6 years now (even before LLMs were the hot new thing) and i have used guix for about a year)
You might find microvm.nix interesting if you ever want to go beyond containers.
In many ways I’ve become more serious about that belief, not to perpetuate the angry Linux nerd stereotype but being able to quickly troubleshoot YOUR configs weird one-off without having to dig through forums and discord channels hoping someone can point you in the right direction is what many of us have always needed. Building docs the whole way so it’s not a complete start over if you lose momentum.
The elitist nerd thing is whatever but having a project that might have taken a day or more of waiting for advice in low traffic social media circles turn into one evening of debugging helps SO much in keeping the “oh I want to try this” inertia of Linux without getting lost because some one off log you didn’t know about has the info you need.
You still get that log, see how it’s meant to work, and can turn it around and keep going rather than staring at your box and wondering if you’re in the mood for going over the advice you got and double checking for typos.
And then for Nix specifically things like the dendritic pattern strike me as progress towards the idiomatic standards I always hoped for. The allure of “Ill just see how someone else did it” working with your environment finally being true, rather than “oh better convert to the style I set up” has helped so so much
In many cases I've been able to fix the bugs that I run across, submit the fixes upstream, and have the same fix running on my system simultaneously without worrying about out-of-date packages or what the software's release schedule is.
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.
For example on most distros an updated package will supersede your rebuilt one and you'd need to build it again manually. On NixOS, it will rebuild your with your patch automatically.
The defenses of Nix based on using it with AI are incredibly hollow. AI is also really good at setting up buildroots, gentoo or whatever else you throw at it.
Heck, you can even build & bake a NixOS VM purely using Nix - no Packer or Ansible (or other tools) required. Funnily enough, I just made a short video about this: https://youtu.be/Pb32C2inVhw.
As for why NixOS vs. another distro, it’s just amazing to be able to declaratively specify the state of your system and “build” that specification with some level of confidence that it will boot and it will work. And if it doesn’t work, you can atomically roll it back without having to solely rely on external (VM or filesystem) snapshots.
I have a single nix config repo that can build my home server, home PC and remote server all. They have a small shared part (terminal user settings etc), but it also sets up stuff like systemd services etc.
Like the whole *arr+jellyfin (download media) setup is just a couple of lines and it just works.
Don't get me wrong, I understand the advantages of Nix in a daily-driven system (e.g. kiosk systems, servers, containers, maybe even for a desktop) but just for sandboxing something it's overkill IMHO
A deterministic OS with built-in rollback, version controlled, and no longer much of a steep learning curve? I personally have been all in for a while and I would expect/hope many others to do the same.
> Combine it with a good personal file backup system like borg and you're golden
As for old generations, I keep my system flakes in a git repo. Even if they're garbage collected I could checkout the old commit and rebuild if necessary.
However, it is worth noting that Nix has pretty good sandboxing facilities.
Nevertheless, more tooling on this area would be welcome. It is still a bit behind Guix.
Anyway, almost got hit with "you're absolutely right", I mean I did, but I was skeptical enough to read the docs myself first. Another time, Opus 5.5 nuked some of my snapshots because it needed disk space, and these snapshot happen to contain a lot of data that was deleted. It did have my indirect blessing to do it, but still.
ok we did step 1, 2, 3, and 4 in a prior commit/session.
Do a review of the most recent commit, which was #4. Fix anything that has an easy, obvious and clearly correct solution. Report anything that needs a human judgement call.
It then fucking ran `git reflog expire --expire-unreachable=now --all` which dropped my git stashes. At ~118k tokens. Why did it expire the reflog? Who TF knows?!I had a 3hr old system backup (have an offline backup yall) so it was nbd to recover, but still. The lawnmower will cut off your foot given half the chance. https://imgur.com/a/zjDgp6r
It might not intentionally delete a snapshot. But y'never know...
> It eliminates the fear of letting AI's wreak havoc on your system and render it unbootable
For local dev, nix is extremely nice for activating the exact environment specified in the flake.
Time Machine was a snapshot backup, which if fundamentally different.
And even then, filesystem snapshotting isn't the kind of rollback you get with Nix, and Nix's implementation doesn't require a filesystem that supports snapshots.
I don't have to run an esoteric, experimental OS to achieve the same goal.
It's a net loss of hacker points — like currency of a country that doesn't exist anymore. Both worthless in the real world.
Having that plus idrive for cloud was just so fire and forget (and cheap!) it was great.
*if you have a drive to store on
Linux to me created a super experience, with everything feeling "clean" compared to Windows, without the need to reinstall every year just to have a workable machine. Somehow Ubuntu lost this in me, but Nixos has given it back. Really sad about this.
Once all the advanced users have moved to NixOS, what will become of the less advanced users?
They move to a noob-friendly NixOS respin. As easy as it is to respin the thing, I'm vaguely surprised we're not already overrun with NixOS derivatives.
I've become anxious using packages from nixpkgs or AUR. I'd prefer user programs running on my system be inside a flatpak/podman/VM. Do NixOS users worry about supply chain attacks from nixpkgs?
The connection between code and installed binary is more fully specified in nixpkgs. You can of course still hide a malicious payload, but the hiding places are all worse than they'd be otherwise: a little more likely that the bad guys would get caught, because now they have to hide in the open.
The shared sandboxing solutions are interesting and I could see myself returning to NixOS once sandboxing, secure boot, and SELinux are standardized.
You're right to be concerned about the supply chain risks though -- bubblewrap was mentioned below, but there's not really any good practical solution to it right now unless you want to define wrapper commands for each of your binaries. (I'm not sure the risk is much (any?) higher than with any other distro though, or especially if the alternative had been to compile from source instead)
But the death-by-thousand-container-cuts eventually made me go with NixOS and I'm so happy with it. Feels like every brick I lay is foundation instead of Jenga. It was podman corrupting for the umpteenth time that finally did me in. I just don't think Flatpak + podman will ever be ergonomic enough for me, much as I appreciate them attempting to solve what might be Linux's biggest problem.
Yes; at least some of us are banging our heads on how to efficiently sandbox arbitrary packages from nixpkgs. (It's easy enough to wrap bubblewrap over any one package, but if you want to do that at scale it's a pain right now. It also provides the pieces to neatly run things in containers or VMs, but again, too much per-package work.)
https://github.com/ambiso/nook
I now use it for most of my development work, and have a separate sandbox for games or higher risk/confidentiality work. You can also wrap any nixpkgs package with fairly light configuration with it.
That’s crazy; I wonder what the quality and stability of all these packages are. I run NixOS on my homelab and have been generally pretty happy, but I suspect I’m only using very standard, well-worn packages.
Ryan Mulligan's bot alone is responsible for over 162k PRs in there:
https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+author%3Ar-...
And I believe much of that is actually pre-LLM, just the basic work of "what version have we got, what version has upstream got, okay bump forward and run the test suite, PR"
It’s definitely not a curated set of packages like Debian, so it’s up to you to be reasonable about what you’re installing. Stability of packages has been stellar in my experience.
I'd feel better about updating my lockfile so frequently if there was some sort of global-min-publish-age like Rust's Cargo has.
Not really sure what the ideal solution is. I just know i'm getting more concerned with each update heh. Especially since so many of us use unstable for some/all packages.
There is such a thing for Nixpkgs: https://determinate.systems/blog/nixpkgs-cooldown/#reducing-...
And of course there are many SBOM tools for vulns which are known and assigned a CVE. One tool was posted here recently, haven't had the opportunity to try it yet: https://news.ycombinator.com/item?id=50046864
My NixOS concern for homelabs is whether such package rebuilds will destroy the write cycles on my storage. Especially in this market I think I would rather let hyperscalars deal with that kind of problem.
It’s amazing when you’re working with multiple laptops as well, keeping your AGENTS.md in sync along with all your scripts, apps, etc.
Once you’re used to it, not having it seems like chaos.
I love it but I don’t think I would’ve had the time to learn it if not for LLMs.
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.
>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.
So yeah, take it with a grain of salt, but it's helped me understand why adoption always felt so hit-and-miss with my co-workers.
Releases were out on time, issues were fixed, my PRs were reviewed. So I have always been confused by this hyper focus on Nix organizational internals from end users.
Sure, if you’re a corporate sponsor of the project or something, you would want to know that the project is in good hands. But does it matter for someone like me who’s running NixOS in their homelab?
I'm sure everyone has had different experiences, so I'm not proposing mine is authoritative at all.
Tools should be evaluated and chosen based on their capabilities and the requirements for the job.
But for actually managing your system itself, I don't think anything comes close. That I can just try some random service with a single line in config, check it out and remove without it trashing my whole system, this is simply not a thing. And this applies to much more complex stuff like some one of kernel option and whatnot.
I've used different kinds of config management and (declarative) deployment tools and my current favorite for hobby servers is Fedora CoreOS and docker/podman-compose.
I'm still an avid user but it's not welcome at work.
I eventually left Gentoo because I was at a time in my life where I needed the OS to get out of my way and just work, mostly serving VMs and boring services. Thank you Debian. But after many years of config management for various systems using various tools, I pulled the plug and retired many thousands of lines of automation that worked very well, and switched to NixOS. I have no regrets.
NixOS reminds me of Gentoo, in how it enables you to really make the system your own, like a custom tailored suit, but it does so in a way that promotes stability, giving you tools for experimenting safely. An integrated declarative language to describe the system is what sold me. Anyone in the ops world will appreciate what that means. Admittedly, I've never enjoyed the Nix language, but now it's less painful with the clankers.
My config is built around flakes, Home Manger, microVM, and agenix, with HM as a module under the flake. A little framework around microVM gives me sandboxed shells, agents, or GUI apps, built from the local Nix store. It feels really nice and I've never been happier with my computer. Thank you NixOS!
Agents make it a breeze. I'm using NixOS on a miniPC next to my router.
For anyone that's reluctant because its a different / new paradigm I recommend you give it a shot.
And as others have said, working with Nix in the AI era has been a huge pleasure. All our servers are now on NixOS. A big thank you to the Nix team!
I was using colmena for all my nixos servers. But keeping everything up to date was kind of a pain.
The most feature I like is being able to define a config my server and run it locally in virtual machine on my dev pc. Its something so easy, its crazy.
It helps configuring my server without directly working on it.
It's so elegant in some ways that it makes up for the other ways that it's just a complete mess. Nothing's perfect.
The constant deprecation of service options and finding that for building VM's the heaviness of systemd and the rest of the system is an annoying issue. I have found I have to change a lot of my config's when switching to later nixpkg versions and the nixos tooling can still be annoying.
I do think nixos is a trail blazer though and actually what you do get particularly with nix is something that is so useful.
I say try nix first before you go full hog with nixos.
Right now NixOS is kind of unique in many ways.
I will now put up a challenge, perhaps 1 out of 1000000 may consider it as a claim:
The claim is that no other linux distribution will offer features similar to NixOS in the next three years.
(Hopefully I will be wrong, but the challenge has now been started. See you in three years to check.)
My config: https://github.com/zernoshka/Phoenix/blob/main/Containerfile
Universal Blue: https://universal-blue.org
I don't surrender. The chase is enjoyable now, because when it's done it feels (almost) permanently done. And done on any machine I'll ever run.
I'm now taking this ethos into remote servers I manage. Containers are you how you contain entropy. But then everything's an ephemeral dumpster fires. But what if they were actually nice places to travel through?