News for hackers. Stuff that matters.
Re:The Curse of NixOS by rgoulter on Monday January 24, 2022 @09:39AM (#30058098)
Nix is wonderful, but absolutely is under-documented. (In part due to a small community, etc.).

A couple of examples I've run into:

https://github.com/NixOS/nix/issues/2259 showed people trying to make use of the "hello world" package which was given in the NixPkgs manual, but couldn't quite figure out how to get it to build.

e.g. if you want a package that's a simple script, "writeScriptBin" seems like what you'd want. -- But it's really not clear how to use it from the manual; you'd have to read the nixpkgs source. https://nixos.org/manual/nixpkgs/stable/#trivial-builder-wri...

Re:The Curse of NixOS by ghostwriter on Monday January 24, 2022 @09:55AM (#30058322)
> you'd have to read the nixpkgs source. https://nixos.org/manual/nixpkgs/stable/#trivial-builder-wri...

Is it too much to ask from developers in 2022? At source, the function is well documented and is provided with an example [1]. The only missing part is a rendered HTML with the same information.

[1] https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-supp...

Re:The Curse of NixOS by HotHotLava on Monday January 24, 2022 @10:40AM (#30058962)
It's one thing to look at the source, it's another thing to know that you have to look inside `pkgs/build-support/trivial-builders.nix` to find the documentation. One of the main advantages of reference documentation is a central place to look up what things do.
Re:The Curse of NixOS by ghostwriter on Monday January 24, 2022 @06:35PM (#30065712)
`writeScriptBin` is the second topmost link on Google search that leads directly to that file in a central repository of nixpkgs. Unique function names have the advantage of being transparent references that you can find either via google, or github search, or grep on your local checkout of nixpkgs.
Re:The Curse of NixOS by rgoulter on Monday January 24, 2022 @11:01AM (#30059274)
In 2022, I think it's a reasonable expectation that API documentation can be accessed as rendered HTML. -- e.g. Haskell's or Rust's documentation even links to the source for the packages.

On the other hand, I think it's fair to say NixOS will sometimes require a high level of involvement from its users. When something goes wrong on another OS, it's easy to search for the answer. With NixOS, you have to understand both the Linux part, and the NixOS part.

Re:The Curse of NixOS by dmitriid on Monday January 24, 2022 @12:06PM (#30060496)
> Is it too much to ask from developers in 2022?

In 2022 it's not too much to ask from the developers of the tools to provide:

- consistent and up-to-date documentation (that's built and updated together with the source code)

- consistent, readable and understandable error messages

Re:The Curse of NixOS by darkarmani on Monday January 24, 2022 @12:37PM (#30060976)
> Is it too much to ask from developers in 2022?

It's not too much to ask for non-production ready software. If nixos is supposed to be production ready, then yes.

Re:The Curse of NixOS by ghostwriter on Monday January 24, 2022 @06:37PM (#30065727)
NixOS is production ready, productive teams that care about reproducibility use it in a variety of production environments already.