Hacker News new | ask | show | jobs
by k_bx 325 days ago
I wonder if Nix is finally OK to use with LLMs. Used to be such a pain and just hours of googling to make simple things work. I think even ChatGPT didn't work well at the time for me, but now at least the try-and-fail can be done by the LLM itself.
3 comments

Did the switch to NixOS a few months ago on my Thinkpad and ChatGPT worked wonders. I'm not very experienced with Linux distros and have been an Ubuntu user for a long time. I don't think I'll be switching away from NixOS anytime soon, it's great.

The learning curve is still extremely steep but after the initial 10 hours of googling it just all falls into place.

I’ve found much success using the most recent LLMs (mostly ones trained on 2024 data) for configuring nixos. It’s even pretty good at flake workflows as well!
Nix is fantastic with Claude Sonnet.
I would be a bit careful, it generates piles of Nix code that may work, but are not great. E.g. it often likes to generate imperative hacks (like setting LD_LIBRARY_PATH, etc.) that break things down the line.

Use it as a teacher to learn to understand Nix deeply yourself. I would absolutely recommend everyone to start with the Nix Pills though, it's a great way to learn the language and understand the basic building blocks.

Heard!

I've been running NixOS as a daily driver for about 5 years so I'm somewhat comfortable with it. So far, I haven't seen many odd configurations as you suggest, but I'll keep my eye out.