* Add first lesson for the new module tutorials, and cut redundant parts from the deep dive
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Add more error checking to the `map.sh` and `geocode.sh` script
The default zoom of 2 results in the `center` option not showing anything
different. So, we change the default zoom to 10.
We also clear up the fact that using an option type of `nullOr <blah>` does not
set a default value of `null` for you.
This removes the lib and lib.fakeSha256, along with any references to them in hello.nix and icat.nix from the tutorial. The tutorial is updated using https://nixos.org/manual/nixpkgs/unstable/#chap-pkgs-fetchers-caveats, providing an empty string to get the missing hash.
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
* draft graphical vm
* Review and improve the NixOS configuration in VM tutorial
Done together in the docs team meeting
* fix wording and formatting
---------
Co-authored-by: Silvan Mosberger <silvan.mosberger@tweag.io>
Co-authored-by: wamirez <wamirez@protonmail.com>
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
this looks like a large change, but it simplifies a few things:
- separate page for documentation resources, with overall less text
- updated information on the official NixOS Wiki
- communication channels are now subsumed under "how to get help"
- a few wording corrections while at it
* docs: improve shell command copy experience
Prevent the inclusion of the dollar sign and preceding characters when copying shell commands from the documentation
Co-authored-by: Silvan Mosberger <github@infinisil.com>
The statistic in
https://discourse.nixos.org/t/nix-community-survey-2023-results/33124
does also include N/A responses in the percentage, so the 58% is a bit
misleading as the conclusion would be that 42% are still not using
flakes. I dropped the 1/3 statement for now, because I couldn't find any
information about that, but I can re-add it if this percentage is
actually correct. I also dropped the 2022 results as it didn't seem to
have the explicit question in it.
- Use separate JSON files to track sources for Nixpkgs and Nix releases
This greatly simplifies the code, because we can directly encode
versions as keys without ambiguity
- Avoid an instance of IFD for the redirect generation
- Use pkgs.substitute instead of builtins.replaceStrings
- Turn off the single-page feature for now. It was added by Valentin in
a previous commit, but I think we should discuss this a bit more
- Simplify a lot of the code and add comments
- Fix the mutable redirects, they were broken by a parent commit
- Remove pieces of Nix code that weren't used, like the import of the
Nixpkgs manual. This can be added in the future when necessary
- Make sure that Nix versions are cached by building from the store path