1
0
Fork 0
mirror of https://github.com/NixOS/nix.dev.git synced 2024-10-18 14:32:43 -04:00
Commit graph

73 commits

Author SHA1 Message Date
Valentin Gagarin a295a4dae1
fix broken reference (#889) 2024-01-30 12:32:03 +00:00
Valentin Gagarin e6c1fb1b14
move automatic environments up, add next steps (#881)
automatically entering the shell is the next logical step, especially if
we have turned it on and off multiple times in a row.
2024-01-29 02:42:49 +01:00
Valentin Gagarin a1c683aabb
move shell.nix tutorial up (#879)
it doesn't make sense that we continue with reproducibility becuase we
haven't seen lookup paths yet.
2024-01-29 02:42:40 +01:00
Valentin Gagarin cf94730f93
show nix-shell --run (#886)
* show nix-shell --run

it's quite useful and not necessarily obvious without reading reference documentation

Co-authored-by: Silvan Mosberger <github@infinisil.com>
2024-01-29 01:41:04 +00:00
Silvan Mosberger 5f1eea5bc2
Merge pull request #880 from fricklerhandwerk/wording
reword shell.nix tutorial introduction
2024-01-29 01:17:43 +01:00
Valentin Gagarin be612d5d12 reword shell.nix tutorial introduction
make shorter sentences and drop the key message about sharing
declarative environments
2024-01-28 20:00:12 +01:00
Valentin Gagarin b0a8a39fce highlight recommendation to use search.nixos.org
this way it's easier to find and probably also remember
2024-01-28 19:52:26 +01:00
amirreza8002 36f1df3008
updated channel version (#848)
22.11 to 23.11
2023-12-26 10:28:34 +00:00
Anthony Camarillo 876483a1f4
fix grammar and punctuation in declarative-shell.md (#834) 2023-12-08 01:11:52 +00:00
Robert Hensing 9cc2ddd16a
Merge pull request #764 from fricklerhandwerk/add-manuals
host Nix reference manual on nix.dev
2023-12-04 17:10:45 +01:00
Valentin Gagarin b29081d5c6
fix typography (#822) 2023-12-01 00:57:48 +01:00
Yannis Charalambidis cbc1b2e95e
Fix typo (#814) 2023-11-27 12:03:01 +01:00
fricklerhandwerk c70711a9d5 update all links to the Nix manual 2023-11-27 07:30:36 +01:00
Lorenzo Manacorda ca15343a1a Fix spell checking errors 2023-11-13 13:46:03 +01:00
Addison Grant ea8357b149
Remove specific software name from header in docs (#795)
* Remove specific software name from header

There's enough detail about it below, and the specific tech isn't the point of this section anyway.

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-09 23:05:01 +01:00
Rob Thomas fcac94d552
updated the context for the installation script to match the example … (#793)
* updated the context for the installation script to match the example for steps outlined

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-09 18:39:00 +01:00
Valentin Gagarin 8a74a98c54
rewrite guide to pinning dependencies with niv (#782)
* rewrite guide to pinning dependencies with niv

* use the specific branch directly

Co-authored-by: Silvan Mosberger <github@infinisil.com>

* use the shell's niv explicitly

* Apply suggestions from code review

---------

Co-authored-by: Silvan Mosberger <github@infinisil.com>
2023-11-07 22:26:23 +01:00
Valentin Gagarin 1b3be81da7
fix stray link reference 2023-11-02 20:03:33 +01:00
fricklerhandwerk 0d93318c5c move python dev env sample to recipes
Co-authored-by: Alexander Groleau <alex@proof.construction>
2023-10-09 21:23:26 +02:00
Alexander Groleau 14b2fc7848
Merge pull request #756 from fricklerhandwerk/merge-shell-tutorials
merge the two shell.nix tutorials into one
2023-10-09 13:17:12 -05:00
fricklerhandwerk ea104900d0 merge the two shell.nix tutorials into one
rephrase slightly for brevity and clarity.

re-use the examples from the ad-hoc environment tutorial both for
simplicity as well as to give it some continuity.

Co-authored-by: Alexander Groleau <alex@proof.construction>
2023-10-09 20:13:19 +02:00
fricklerhandwerk 869d6bd0b4 move Nix language tutorial to top level
this fits the global outline we developed, and also makes the tutorial
more immediately visible - working with the Nix language is a core skill
we want to teach after all
2023-10-09 17:26:06 +02:00
Valentin Gagarin a8723671ee
Merge pull request #745 from NixOS/editorconfig
Add EditorConfig file and fix errors
2023-10-06 12:09:23 +02:00
Valentin Gagarin d7556d18b1
Merge pull request #728 from g-re-g/patch-1
change "build task" to "derivation" in tutorial

"build task" invokes associations with pre-existing knowledge. As long as they are clearly explained, it is easier for beginners to pick up a new word than it is to add a new definition to an existing word that subtly differs from the other definitions it has. To that extent, "derivation" is probably a great word for Nix as, at least in this domain, it is very Nix specific and so, with clear definition, it should be easy to convey the idea to other folks that we are talking about something Nix specific.
2023-10-06 12:02:22 +02:00
Lorenzo Manacorda 1dcc111a4d *: fix editorconfig errors 2023-10-06 10:59:27 +02:00
a c sreedhar reddy f2fe0aa56b
Remove write space in shebang line (#736) 2023-10-03 10:12:05 +02:00
g-re-g f381e24357
Better terminology for string interpolation of derivations
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-09-14 13:00:00 -04:00
g-re-g 11f943e3b3
Remove description of derivation using "build task"
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-09-14 12:59:25 -04:00
Valentin Gagarin 68839d3d60
Merge pull request #621 from CyberShadow/patch-1
tutorials/first-steps/nix-language: Fix the nixpkgs example
2023-09-14 15:24:30 +02:00
g-re-g f60d8a8671
change "build task" to "derivation" in tutorial 2023-09-13 14:15:26 -04:00
Jonathan Arnett 9c7e4a8156
Use bold instead of monospace for emphasis 2023-09-02 23:17:53 -04:00
Alexander Groleau 58464f3967 fix broken anchor 2023-08-07 10:29:05 -05:00
Zach Mitchell, PhD 808ac3b3ce Update source/tutorials/reproducible-scripts.md
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-07-27 08:59:32 -06:00
Zach Mitchell, PhD 64348ea907 Update source/tutorials/reproducible-scripts.md
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-07-27 08:59:32 -06:00
Alper Cugun 56ba5bda03 Explain what this construct is
> The chained script interpreter to be invoked

Chained is mentioned here but then also forgotten about: https://nixos.org/manual/nix/unstable/command-ref/nix-shell.html

Mostly it's unclear here why there are multiple weird hashbang lines there that are the same.

Also it's not great that here an entirely new construct is introduced that probably nobody will have ever seen before and to understand what it does you have to go to several different off-site documentation pages.

Can this be rewritten to be more standalone?
2023-07-27 08:59:32 -06:00
Tanner Wilcox 678d749e04
Update ad-hoc-shell-environments.md (#661)
Typo fix
2023-07-24 08:35:46 +01:00
Jaime Terreu fd3494bee8
Fix small typo (#658)
Co-authored-by: Jaime Terreu <jaime@Jaimes-MacBook-Pro.local>
2023-07-21 16:25:00 +02:00
Carlos Marques f281829318
fix mismatching file name in example (#655) 2023-07-20 17:59:43 +02:00
John Bowdre 21abf7b6ad
Fix typo in ad-hoc-shell-environments.md (#652)
Footnote 2: 'packges' -> 'packages'
2023-07-19 16:25:07 +01:00
Valentin Gagarin b4628cdd04
Remove "reproducible" from glossary (#646)
* Remove "reproducible" from glossary

It is not part of the official terminology the nixos documentation team established in https://github.com/NixOS/nix.dev/pull/263.

It was mixed in https://github.com/NixOS/nix.dev/pull/380 and messed up the official status of the terms. This change fixes that!

It can be added again when we figured out what we mean by it (https://github.com/NixOS/nix.dev/issues/464).

---------

Co-authored-by: davidak <davidak@users.noreply.github.com>
2023-07-13 21:33:29 +02:00
Valentin Gagarin 16ffcd0651 move estimated effort after the prerequisites 2023-07-13 21:23:23 +02:00
Valentin Gagarin db1d3c8404 revert change of title
introducing a negatively connotated word is probably not a good idea.
there is some risk of inducing fear that was not there before, and the
tongue-in-cheek aspect may not come across.

the title should be unique and easy to recognise, and it was. "Reading
the Nix language" is already the title of the talk most of this is based
on, and we shouldn't reuse it
2023-07-13 21:23:23 +02:00
Valentin Gagarin 57741ca766 fix custom admonition 2023-07-13 21:23:23 +02:00
Valentin Gagarin 561ee13ffa don't use mobile wikipedia 2023-07-13 21:23:23 +02:00
Valentin Gagarin fc308c367e clarify details on name assignment
this fills a long-standing gap of not mentioning function arguments as
another form of name assignment
2023-07-13 21:23:23 +02:00
Valentin Gagarin 633a35514c shorten introduction
the allusion to the Elements of Programming[0] never really worked out

[0]: https://mitp-content-server.mit.edu/books/content/sectbyfn/books_pres_0/6515/sicp.zip/full-text/book/book-Z-H-10.html#%_sec_1.1
2023-07-13 21:23:23 +02:00
Valentin Gagarin 8f4f1936c0 rename the Nix language tutorial
this collapses the "don't panic" section into a motivating introduction and gives
the document a more distinctive name.

this also addresses feedback stating that having "basics" in the title
may be misleading about the effort required to work through the
tutorial.
2023-07-13 21:23:23 +02:00
alex f8b9cae27b fix reference link 2023-06-27 12:36:54 -05:00
alex 26e61307ad reword parts of direnv section 2023-06-27 11:53:58 -05:00
alex 0ee2bc6371 add motivation & clarification to environment customization section 2023-06-27 11:47:20 -05:00