and one more thing: “perfect is the enemy of good” sometimes.
Sure, but with documentation, I think that platitude has different dimensions:
- Perfect documentation: describes everything, totally accurate
- Good documentation: describes most things, very accurate
- Bad documentation: describes everything, somewhat accurate. Also describes things that aren’t there.
I can’t tell you how many LLM generated comments, docs, etc, I’ve recently that don’t even accurately describe the code they’re placed above. Of course, this problem existed with humans before, but introducing a firehose of that kind of content doesn’t seem prudent to me.
agreed but again we need to start somewhere. Talking about the problems and what not to do and what can happen if we do this and that does not solve the problem. Should we wait until the documentation is perfect? Can we start now? What to do as the first step? I get all the bad things .. but we need to start somewhere.
What precisely do you mean by, “We need to start somewhere”? There’s a Documentation team that meets regularly that’s working on improving things. You could start by joining that team and lending your voice and time to their efforts. If you’re genuinely concerned with improving the documentation, I’d challenge you to start there.
But, if by “we need to start somewhere” you mean, “Let’s let the LLMs spit out something good enough to get things started”, then I don’t think you do actually agree with my previous comment.
I’ll let you clarify, though: what do YOU think is the concrete next step to create the changes you want?
As a sidenote, I’ve had a chance to interact with some of the Documentation team folks, and they’re all wonderful and bright. No gatekeeping there. I’m sure they’d appreciate the extra set of hands!
I’m not saying they are gatekeeping at all. They have a really hard job keeping up and doing what they can. I do agree with what you are saying as well. What I’m afraid off is we are taking to long to adopt to a situation that is moving at a speed we have not encounter before. I think we should start with llms.txt and skill for nixos. There are a lot of users already creating this them self and we could combine the experience and let users try this out as an experiment. The same with llms.txt. I’m sure the Anthropic,OpenAi or others will donate tokens to the Nixos project if we allow them. This would at least show us what the this could be in the future. We still need humans in the loop but we could use LLM’s as a tool. It is an easy experiment. Index the documentation, verify with test on the code to make sure that it is compliant and working. Create a list of outdated documentation, suggest changes and updates. Verify using humans eyes and suggest edits if needed. Create rules and gates for how this should be and repeat.
I have heard this claim all the fifteen years, about completely different issues. Nixpkgs is still there, somehow.
CUDA users have specific needs (stuff precompiled against CUDA) which raises some questions about what counds as redistribution of modified CUDA binaries, which main Hydra would prefer not to have as their own problem. They just have their own Hydra.
A repository with text files should be easier infrastructure-wise. If you do not expect success coordinating this, mainlining large changes is a harder task.
And somehow world domination is still out of reach?
Get your point I do. I think the first attempt should be to see what is out there and how user are solving this them self.
I will play with nix.dev and the nix wiki and see what is needed to create a proper llms.txt and some nix lang skills from nix.dev. Then I can share and get some judgements ![]()
If you make documentation good for humans, then it’s automatically good for AI agents. But the converse isn’t necessarily true. So if we just make documentation good for humans, everybody wins?
Personally I already use AI agents to work on a lot of nix stuff, and have never run into limitations due to poor documentation.
Llms.txt is an extremely outdated technique from before when ai agents had good web search capabilities. It is completely useless today.
Last time «why the hell do I have to spend this effort» was «because not enough people are using Nix», more than a decade ago; «because too many people are using Nix», arguably a year ago.
Oh, and most world-domination plans in last five years included dropping the basic parts of definition of stability and quality that have been considered table stakes for fifteen years.
Doing tomorrow like yesterday, we are on the trajectory where a few large organisations will be very unwilling to give up what Nix gives them. Anything more is actively bad for useful parts of Nixpkgs development.
Sorry, actually, without anything text or markdown stuff facing to LLM.
NixOS are already fitted to LLM.
Yes I can see this. Doing the rounds in Nix repos: nix-dev, nix wiki and nixpkg. Crawling them and creating skills right now. Adding a really simple llms.txt with proper index for this should be really easy to do. I will share the skill when I have something working well.
btw im agree something is still needed, the official wiki is sh1t enough, it is hard to create i18n
OK here is my first attempt to create Nix skill from official sources. The repo will update nightly and check for updates in the official documentation and update the skill if needed. Working on creating a way for other to contribute to this. Adding new skill or adding new sources. here it is: https://github.com/olafkfreund/nix-skills
I haven’t had a chance to look in depth, but cheers to you for getting it started!
Working on creating a llms.txt that will point to the official documentation as well. It can live in my repo for now, just to prove a point on how this can work.
I think «Nix setup for agentic use» that has all those AGENTS.md etc. and imports Nixpkgs and maybe something else as submodules is a reasonable way to collect what you are collecting, and it will make perfect sense that it has llms.txt as that is the project specifically aiming at a good LLM-oriented setup.
And it never hurts popularise the idea «repository of opinionated setup assuming a checkout of upstream repository is one level below» — it’s not just about LLMs, also envrc, also Nix setups for non-Nix-using upstreams, upstreams doing different opinionated setup that you don’t want your editor to trust, etc.
Side effort in the same general vector. Lemme know if it’s useful. PRs/discussions welcome.
(In case it wasn’t obvious, yes this project is LLM-assisted.)
Perfect. Thank you, I will have a look at this and see if there is something I can use from this as well.