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.
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)
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
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.
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.
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.
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.
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.
> 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.
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.