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?
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.
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.
You might find microvm.nix interesting if you ever want to go beyond containers.
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)
If I gave guix a spin, would I run into these same exact issues do you think? (Incidently separately from all this I do love gnu guile and lisps in general)
but like... guix still is a little high effort to package things for (though it has guix import or whatever to try auto-generating a package from a supported upstream, e.g. a crate or something).
you can, however, in both guix and nix, have escape hatches (flatpak, appimage, chroots).
https://guix.gnu.org/manual/1.5.0/en/guix.html#:~:text=Data%... guix supports stow-like or "dotfiles" repository like configurations in guix home pretty kindly. with macos, nix-darwin + home-manager was suitable enough for me although a little jank... guix home doesn't concern itself with macos, but you could probably use the exact same dots between them using the aformentioned link
most of the reason one would even use home-manager to begin with is using modules for one's programs (at which point nix becomes something you can't do away with because all of your things are caught up in it) at the cost of indirection (having to read both the underlying program's manual AND the home-manager/nixos module)
guix has less modules and where it does have modules they're more conservative about changes and slower to change
you would be likely to run into the same issues, the question is whether or not you would want to take the easier ways out instead of committing wholeheartedly to purity...? (plus, to begin with, proprietary software means having to figure out guix channels and nonguix! your wireless drivers, nvidia graphics drivers, ...)
i've been pretty committed to the guile stuff to the extent of trying out and contributing to https://codeberg.org/ebeem/gliver as of late but from NixOS, until i move fully to guix :p
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.
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.
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.
> 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...
For this, offline backup might not have been necessary, and not many people have 3hr old offline backups.
`git fsck --unreachable`, although tedious, maybe could recover the commits with enough dedication, if gc hasn't run.
Further measures to keep that from even being necessary:
Is the filesystem btrfs or zfs? Snapshots are your friend (there are existing snap+replication solutions like btrbk or sanoid -- in this case, to be configured to take a series of snapshots without subsequent replication).
Another potential mitigation is to run a master git repo with force-pushing disabled, and have the agent clone/pull from that. Joint use of a single local repo -- with fragile stashing on your part, and an agent also manipulating the repo without confirmation -- seems dicey.
For local dev, nix is extremely nice for activating the exact environment specified in the flake. Dev/build time/prod/etc. all match up exactly.
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.
> I don't have to run an esoteric, experimental OS to achieve the same goal.
Indeed, you can achieve something pretty decent today on macOS with Nix-Darwin. Both the rollback capability and the declarative configuration management Nix offers are OS-independent.
> It's all means to an end.
Sure! The best reasons to run NixOS are "I enjoy the experience" and "it's really good at this specific thing I want/need to do". NixOS offers experiences that reignite the joy of computing for many, many people. If it deserves any "hacker points", it's for bringing delight to hackers, not for some notion of technological sophistication.
If you've tried it and don't like it, then it's not for you. But if you haven't, though, you might ask yourself whether your healthy tech curmudgeonry, that impulse to resist the arbitrarily trendy, has devolved into philistinism.
But NixOS is not that at all, it's not a backup solution. You can't take TimeMachine (or whatever disk snapshot solution you use, even ZFS if you like) and ask it to reinstall your system from clean just like before, but with a different Firefox version (just to set an example). Or to replicate it partially or totally in a container or VM.
I don't even use NixOS (although I do a lot of snapshots), and it's a completely different thing.
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
Time Machine was the “oh shit” button for resetting or starting a new computer and it worked very well. It was also very stable and hard to misconfigure.
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.
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.
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.
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.
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.
As a user, I haven't noticed any negative effects on the software.
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.
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.
I am not that patient. It runs something else now.
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!