11 sep 2014
at the kiberpipa sprint 2014, nicolas pierron an me decided it would be cool to have a ‘nixos option search’ and here it is [1]! [1] is still a preview but will soon be found on the nixos.org homepage [2].
nix can export to JSON but that used to be broken as there was some serialization issue breaking it. as nicolas wrote the ‘nixos options backend’ he was able to fix the serialization, so now we can export all the option configuration which are available.
next we were using javascript to display all these elements in a single webpage
finally we filter these based on the words given
the option.JSON file will be automatically updated from time to time, so it will always reflect the most recent nixos stable options
it is quite fast and hopefully everyone will like it, here is how it looks:
the screenshot below shows we do have 248 nixos services in nixpkgs which is pretty awesome!
the nixos option search will be live in a few days, niksnut has to review the stuff, fix the Makefile and merge it with the nixos-manual ‘master branch’ [2].
also documentation related: if you want to contribute to the documentation, please feel free to use the new ‘page source’ or ‘edit’ link, which will be one all nixos.org webpages (except the wiki) from now on! i think this feature was an idea of garbas and it works like this:
you click the link
you fork the nixos-manual repository to your github.com account
finally you make the changes and click ‘pull request’ (if you need a preview of your changes, which will be 90% of your changes, you rather want a clone to your harddrive and a ‘nix-shell –command make’ first and a review with your browser second)
after a review of your changes from niksnut, they might get into the nixos-homepage
here is a screenshot of the new links:
the kiberpipa sprint was really awesome - thanks to domen and all the others! i’m already looking forward to the next sprint, which will probably take place during FOSDEM15.