Hacker News new | past | comments | ask | show | jobs | submit
NixOS is, in my opinion, the most AI-ready operating system. It eliminates the fear of letting AI's wreak havoc on your system and render it unbootable, as rollbacks are built-in. Combine it with a good personal file backup system like borg and you're golden. My days of tinkering to get things to work in Linux are over, and that makes me happy.

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 got heavy into NixOS pre-ai, in like 2020, but I agree, it's an ABSOLUTE joy now. My entire OS is custom built to my workflow, down to every little step. I have custom scripts and services all over the place removing friction. And it's not even chaos! My whole config is logically laid out and I understand every single line, with every module and feature in it's own little spot. And as soon as I notice something about my setup I don't like: I throw an agent at it. If I want to try some software that only lives in github, an agent packages it for me. If I don't like it: abandon the change and rebuild.

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.

loading story #50753449
loading story #50752438
loading story #50752391
loading story #50752875
loading story #50752290
I, jokingly, told someone that AI might make the year of Linux happen because it’s less angry about your ignorance and maybe as wrong.

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. Building docs the whole way.

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

loading story #50753750
NixOS is also the most tinker-able OS out there. You can quickly have your AI agent make a patch for any operating system component that you want, and automatically rebuild that component and everything that depends on it.

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.

loading story #50752336
loading story #50752401
I partially agree. I have been using NixOS as my daily driver for a few years on my desktop and wanted to setup an old laptop for an always-on agent-only device that I would only really interact with over SSH. I had trouble with proprietary Wi-Fi drivers and some other setup issues (which Claude helped me through with a bit of difficulty). Once it was up and running I also found the agents will often have some difficulty with dependencies I.e. wanting to use other package managers like npm when I would prefer it to use nix-shell. It often sorts itself out in the end, but will hit a lot of dead ends. This could be user-error on my part and a lack of a good Claude.md or similar, but for now I have found it much simpler and stabler for my agents to use a Debian machine. (I still use nixOS as my daily driver with AI agents also running on my machine, just the agent only machine is Debian).
loading story #50753029
I would argue that it was the best distro pre-AI (no, I am not biased), but AI elevated it to the next level and made it more accessible to a wider audience.
I've never used Linux as a daily driver and recently I finally decided to make the leap and go with NixOS on the recommendation of a couple friends of mine, and I'm very happy with it. I also wouldn't have even made the attempt were it not for ai. I set the entire system up, including my media server stack, development environments, and more, remotely via telegram and claude code while on a camping trip with my family. The future of computing is talking to your computer and it just does what you tell it to.
What's the advantage over any other Linux distro in a VM that you can checkpoint, refcopy and boot up in seconds? I'd rather let my AI agent run amok in a VM than on my actual production system
loading story #50753182
loading story #50752894
loading story #50752643
It’s all fine and dandy until it deletes the nix store
loading story #50753718
That's only true for the declarative parts of your system. What if AI decides to delete your photo library and you don't have a backup? Or it deletes your old generations to "save space"?
loading story #50751838
loading story #50751993
loading story #50751828
loading story #50751845
loading story #50753258
loading story #50751851
loading story #50752197
loading story #50752137
Yup. I run my entire server setup on nixos. Been doing it almost 8 years now. But I recently handed it all over to my agents. Got pxe booting, instant kexec updates with tpm handoffs, etc... so easy!
Old, solid and futuristic-good tech? Congrats, now the discourse is overrun by people talking about machines using it.
loading story #50752462
Counterpoint, in the AI world, nix is less relevant for local dev. With remote environments and the trend to build less locally, minimal remote environments with little management are a nicer experience. I think running agents on a local system will be less common in the enterprise by the end of 2027
loading story #50753089
Time Machine could do that in 2006.
loading story #50751985
loading story #50752146
loading story #50752397