upvote
I have this, but multiplied across all my machines with flakes. Three Linux servers, one Linux gaming desktop, and two Macs (running nix-darwin).

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.

reply
Can I ask how it works as a gaming machine? I'm on Ubuntu (largely because it was the 'supported' distro for Total War: Warhammer), contemplating a move to Debian because I want to stick with APT, but Nix is appealing.
reply
I run NixOS as a gaming machine - it should be comparable to any other Linux distro. Steam Linux Runtime or proton handles a lot of the Linux-specific issues anyway. And agents solve having to learn Nix for the most part, if that is the part you were hung up on - I've been using it long before agents, but I mostly have the agents edit my config now, so...
reply
>Secrets are managed via a custom built system I have that needs going through a YubiKey to decrypt .age files on the fly.

This sounds pretty cool! Anything you can share or explain in more details?

reply
I have something similar except I don't use AI and I'm using Arch Linux, but it also works with WSL 2 in Windows and supports macOS for the non-GUI related packages / config.

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.

reply
This is not the same. I used to do something like what you describe, but it can't get close to the ease and safety of a declarative config: updating the script and updating the current system are two different steps, only one of which is easy to verify (let alone libc or gpu drivers randomly breaking when i try to install a dependency...).

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.

reply
Nix is also great outside of NixOS. I use it to keep packages consistently installed across a Ubuntu, Arch and NixOS devices.

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.

reply
Yep. Same. And think about deploying all your servers with Nix/NixOS. Including vllm that needs tons of patches to work fast and correct. And all your derivations are in version control. You can prompt changes, test them locally, deploy fearlessly.
reply
Do you have any comparison to guix? I'm intrigued by the concept, and I think some of guix' choices would appeal better to me, but I'm unsure about the size of the ecosyste,m, I almost never hear about it.
reply
If you like “pure” FP languages like Haskell, you will love Nix’s design and won’t have a problem with the language. If you prefer Lisps and prefer messy flexibility, Guix is probably a better fit.

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.

reply
I used Nix for a while (~2019-2023) and switched to Guix. katdork's answer is good so I will try to only write things that complement it rather than repeat stuff.

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.

reply
This link is my favourite for comparison of NixOS to <insert other OS here>: https://repology.org/repositories/graphs

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.

reply
not the parent poster, but:

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)

reply
I used nixOS for about two years and then migrated off. I kept running into issues caused by it not implementing the FHS but also found the tools for working around that (nix-ld, steam-run, 'just write a custom flake for it') to be really lacking and a huge pain. Over the years, the list of things I couldn't do without enormous effort grew too large and I switched back to slackware, where it feels great to just be able to drop a release in /usr/local/bin or run an appimage (appimages in particular were a nightmare for me on nixos, which surprised me as I thought they were supposed to have all their dependencies included but still ran into dynamic linking issues everywhere.) I also never wanted to use home-manager; because of work I have a hybrid dotfile system that works on both mac and linux and being able to port configs via a simple script to systems on whatever os (except windows I guess) is important to me, and I also never felt like the home-manager setup was more elegant or useable than just a symlinked ~/.config dir.

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)

reply