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

958 commits

Author SHA1 Message Date
Valentin Gagarin 8264c846ef link to new Nix reference manual page 2023-11-27 07:31:32 +01:00
fricklerhandwerk c70711a9d5 update all links to the Nix manual 2023-11-27 07:30:36 +01:00
fricklerhandwerk 21bfef408a host Nix reference manual on nix.dev
this is the most cursed setup you will see any time soon.

we're dumping the Nix manual unchanged into the build tree *after*
building. the reason is that we'd want to link to it from our table of
contents, but because Sphinx does not allow adding arbitrary files to
the build output in arbitrary locations (only `_static` works). but we
want to place the manual behind a particular URL, and the alternative of
maintaining URL rewrites (e.g. in nginx) is not accessible here because the
infrastructure is managed somewhere else.

now that the files won't appear in their desired locations at Sphinx
build time, we can't use relative links to reference them, therefore we
have to resort to pointing to the web URL the manual will appear at.
this is terrible and I'm sorry. please fix this if you have a better
idea. once we use URLs though, we have to avoid linkchecking, since
those files may not be there before deploying them.

figuring all of this out took way longer than anyone would wish.

Co-authored-by: Alejandro Sanchez Medina <alejandrosanchzmedina@gmail.com>
2023-11-27 07:30:35 +01:00
Alexandre Macabies a15d8a3eda
Fix link anchor typo (#810) 2023-11-25 15:32:24 +00:00
Silvan Mosberger 614b6fe50f
File sets tutorial (#802)
* source file selection tutorial

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2023-11-23 17:14:46 +01:00
olaf 7941b348a0
vm change to reproducible command (#804)
* add paragraph on a reproducible nixos-generate-config

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-22 17:43:38 +01:00
Valentin Gagarin 5f5ef7349a
fix typo 2023-11-21 23:50:38 +01:00
Silvan Mosberger 37922482b7
Module system deep dive tutorial (#645)
* Draft module system introduction tutorial

* add intro/conclusion, rework prose, follow styleguide, clean diffs

* Review pass

* Apply suggestions from code review

* fix whitespace

* add some more motivation the each section

* make scripts downloadable

* address review comments

* make script actually work

...hopefully. can't test it without Google API key

* add file watching

yes, this looks scary, and yes, it works.

* update diff and wording

* more notes on potential pitfalls

* be explicit which `map` we mean

* split nullable from default values

* also wrap the geocode script

* work through the tutorial to the end

* add tutorial overview

* `lib` is always passed

* add separate section for `evalModules` and fix link

* make option strucutre more self-explanatory

* explain command line invocations

* add note on incomplete reference documentation

* add more highlight to the `config` distinction

* fix parameter passing to the `./map` script

* fix typo

* fix wording

* link to summer of nix

* add missing word

* link to Google Maps API docs

* more explicit requirement

* use correct module system terminology

* Update source/tutorials/module-system/module-system.md

* Apply suggestions from code review

* whitespace

* module-system.md: replace comments with captions

* add missing lang for code-block

* Update module system title

* change most headers to be about module features (#797)

* change most headers to be about module features

Some headers could not be made about module features, and that's a
strong signal that those sections should be removed.

* Apply suggestions from code review

* module-system.md: Fix header casing

Co-authored-by: Alexander Groleau <source@proof.construction>
Co-authored-by: asymmetric <lorenzo@mailbox.org>
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-20 17:21:06 +01:00
Silvan Mosberger a77d314879
Less confusing stable channel recommendation (#791)
* Less confusing stable channel recommendation

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-16 17:37:59 +01:00
Lorenzo Manacorda ca15343a1a Fix spell checking errors 2023-11-13 13:46:03 +01:00
Valentin Gagarin 5aa0254754
search path -> lookup path (#747)
recent additions to the Nix manual clarify the distinction between
search path and lookup path, and also document the resolution algorithm.

lookup paths are now a distinct Nix language construct with its own
reference documentation.
2023-11-13 10:30:42 +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 0d770fce2e
fix formatting/punctuation (#794) 2023-11-09 16:38:09 +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
Daniel R ab98971f03
move question 'what are channels...?' -f recipes -t concepts (#744)
Co-authored-by: Alexander Groleau <alex@proof.construction>
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Co-authored-by: Silvan Mosberger <silvan.mosberger@tweag.io>
2023-11-07 03:11:25 +01:00
wamirez b1ae5e47fc rephrase best practices for clarity 2023-11-06 12:23:27 -04:00
Valentin Gagarin 1b3be81da7
fix stray link reference 2023-11-02 20:03:33 +01:00
Valentin Gagarin 5c0ac8a727
add best practice on reproducible Nixpkgs configuration (#780) 2023-11-02 02:30:40 +01:00
fricklerhandwerk 8afee98203 dissolve the Learning Journey section
This does not yet follow #701, because the change to get there would be
too big. The goal is to keep the table of contents meaningful at all
times and the diff of each pull request manageable.

The packaging tutorial is quite important, so it's not wrong to have it
visible on the front page until we have enough material for a packaging
section.

The sharing dependencies article should really be a very brief guide, but
because that would be quite a big change, it's only moved to the Guides
section for now.
2023-11-02 00:13:32 +01:00
fricklerhandwerk 2f09d22b8b fix styling issues and links 2023-11-01 23:52:10 +01:00
Henrik 12846fc6c2
This cute world NixOS and Flakes unofficial book (#781)
* added this cute world unofficial book

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-10-31 12:18:33 +01:00
Valentin Gagarin 3373822a7b
remove learning journey working group (#776)
- move tutorial process into the contribution guide
- move documentation survey in the maintainers directory
2023-10-30 17:04:14 +01:00
Valentin Gagarin 3a52c0ac05
add Recipes section under Guides category (#775)
* add Recipes section under Guides category

This also removes the templates section, as we're not maintaining it and it likely won't be necessary anyway once the curriculum is roughly finished.
2023-10-27 17:09:16 +02:00
Valentin Gagarin eb0825d6fe
style guide: remove duplicate quote, reword (#758) 2023-10-25 11:30:05 +02:00
olaf 0c7bb8e86c
Update source/tutorials/nixos/installing-nixos-on-a-raspberry-pi.md
Co-authored-by: Yuki Langley <hi@yukiisbo.red>
2023-10-24 11:53:31 +02:00
olaf 1ecd4dfc0b
Update installing-nixos-on-a-raspberry-pi.md
fix link to raspberry pi bootloader_update_stable
2023-10-23 11:23:08 +02:00
Valentin Gagarin 833a73b7a3 add graphical environment as requirement
the instructions say that the command will open a window, which
naturally requires a graphical environment. but this is very late in the
process, and will likely not be obvious in the middle of a a self-directed learning situation.
2023-10-23 02:16:02 +02:00
Valentin Gagarin 2566dbbf0c reword to direct instructions 2023-10-23 02:15:50 +02:00
Valentin Gagarin cc7d705cf3 clean up references 2023-10-23 02:12:41 +02:00
Zach Mitchell, PhD ad4fbfa565
Merge pull request #766 from fricklerhandwerk/nix-contributing
refer to contributing guides in the respective projects
2023-10-19 22:42:16 -06:00
Zach Mitchell, PhD 462a947529
Update source/recipes/best-practices.md
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-10-19 11:30:34 -06:00
fricklerhandwerk ef8c0b72ab refer to contributing guides in the respective projects
this is where the information will be most up-to-date and where it
should be maintained to begin with.
2023-10-19 12:17:00 +02:00
Zach Mitchell 31fa807ccd Mention rebuilds in best practices 2023-10-18 09:05:28 -06:00
Daniel R 5bc35ca7ce
move question on impurities to FAQs section (#757)
* move 'are there...impurities in builds?' -f recipes -t concepts

* reword some items and add links/more info

* fix random bullet point

* rm nix hour ref

* rm home directory bullet point

* reword question to make it more specific

* add back filesystem item

* replace passive to keep list's theme

* fix typo

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>

* add nix version item to the list

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>

* add binfmt to linux kernel items

---------

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2023-10-12 19:42:01 +02:00
fricklerhandwerk d9016d8cf4 add link to shell.nix tutorial 2023-10-09 21:23:29 +02: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
alex d003321adb move direnv instructions to recipes, update and rework text
Co-authored-by: fricklerhandwerk <valentin@fricklerhandwerk.de>
2023-10-09 13:37:21 -05: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
Alexander Groleau d4018a6359
Merge pull request #751 from fricklerhandwerk/recommended-tools
add link to awesome-nix
2023-10-09 08:50:59 -07:00
Alexander Groleau 325915aa41
Merge pull request #752 from fricklerhandwerk/merge-pinning-docs
add introduction to cross compilation tutorial
2023-10-09 08:50:09 -07:00
fricklerhandwerk 9961ac5d54 add introduction to cross compilation tutorial
remove references to "towards reproducibility" as that's not very
focused, and at that point readers will likely be familiar with the
concept such that they only need the reference, if anything
2023-10-09 17:46:24 +02:00
fricklerhandwerk bb1f44c67b add link to awesome-nix
this will hopefully help people find useful things a lot faster
2023-10-09 17:32:32 +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
Alexander Groleau 6cd0c3de72
Merge pull request #748 from fricklerhandwerk/add-links
clean up detailed explanation on building VMs
2023-10-09 08:08:14 -07:00
Alexander Groleau 84bbc7c230
Merge pull request #725 from olafklingt/server-client-test
simple server client test
2023-10-09 08:07:37 -07:00
asymmetric eaded9b070
Merge pull request #746 from fricklerhandwerk/move-warning
highlight password security warning in NixOS example
2023-10-09 11:27:57 +02:00
fricklerhandwerk 769cff9030 clarify detailed explanation 2023-10-07 04:21:19 +02:00
fricklerhandwerk a2a706f29d don't repeat the example contents in the instruction 2023-10-07 04:12:44 +02:00
fricklerhandwerk cd1abe532b use self-descriptive link text, imperative for instructions 2023-10-07 04:12:44 +02:00
fricklerhandwerk a1b582f33a modules are not a convention 2023-10-07 04:12:44 +02:00
fricklerhandwerk 82e7185436 remove superfluos capitalisation 2023-10-07 04:12:44 +02:00
fricklerhandwerk 4bcf52fe1b reword learning goal to use more keywords 2023-10-07 04:12:43 +02:00
fricklerhandwerk d59250908d remove compatibility blurb
readers don't even need to think about it, as it's encoded in the pinned
source. at best this would be a note to maintainers, but we should know
that as well.
2023-10-07 04:11:46 +02:00
fricklerhandwerk 776d19f8e8 dedent list 2023-10-07 04:11:44 +02:00
fricklerhandwerk d876a318bc more concise instructions 2023-10-07 00:37:42 +02:00
fricklerhandwerk 4b814d5d37 more precise heading 2023-10-07 00:37:27 +02:00
fricklerhandwerk e6ae1afaed highlight password security warning in NixOS example 2023-10-06 23:23:50 +02:00
Valentin Gagarin a279bfbd6a
avoid gerund 2023-10-06 23:21:20 +02:00
Valentin Gagarin 35ae4de7ca
more mundane grammar 2023-10-06 23:20:19 +02:00
fricklerhandwerk 07ea1eb6b2 rework the multi-machine example
- use the same Nixpkgs release to avoid massive downloads
- continue using `pkgs.nixosTest`; the new thing is completely undocumented
- use a shorthand module; `lib` is not used
- use an empty nginx config; commented-out code is confusing
- move explanation of the test script to the end; use imperative
- add instructions to run it
2023-10-06 22:51:08 +02:00
fricklerhandwerk e5f8ca0a9d reword introduction to multi-machine example 2023-10-06 22:51:07 +02:00
fricklerhandwerk 2a8bc7dd63 more concise heading 2023-10-06 22:50:46 +02:00
fricklerhandwerk 256bcd47ea remove superfluos empty line 2023-10-06 22:50:46 +02:00
fricklerhandwerk f15b5a4df3 build up example as numbered list
while section headings are good for linking, this is not very important
here. the heading distract from the sequential structure, which the list
exposes more clearly.
2023-10-06 22:50:46 +02:00
fricklerhandwerk 5fd6576a8d fix wording 2023-10-06 22:50:46 +02:00
fricklerhandwerk 0e63b762b9 clarify wording around module options 2023-10-06 22:50:46 +02:00
fricklerhandwerk 0067b57ebc remove superfluos indentation 2023-10-06 22:50:46 +02:00
fricklerhandwerk 14adbcfb87 use self-descriptive link text 2023-10-06 22:50:46 +02:00
fricklerhandwerk c7dfcb7968 link to main Nix installation instructions 2023-10-06 22:50:46 +02:00
fricklerhandwerk 1ad3a3e2f8 more specific title 2023-10-06 22:50:46 +02:00
olaf 13ca4846b2 fix wording 2023-10-06 22:50:46 +02:00
olaf 56426054ed unrelated fixes 2023-10-06 22:50:46 +02:00
olaf 4509761055 simple server client test 2023-10-06 22:50:45 +02:00
Valentin Gagarin 8ef096641d
Merge pull request #741 from fricklerhandwerk/move-installation
move installation instructions to top level
2023-10-06 13:36:34 +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
fricklerhandwerk 8c74278eff update front-page instructions 2023-10-06 09:46:54 +02:00
fricklerhandwerk c0ef0b5988 move installation instructions to top level
it's not a tutorial and should be immediately accessible
2023-10-06 09:46:54 +02:00
Silvan Mosberger 43bede33bc
Merge pull request #743 from fricklerhandwerk/move-name-origin
move conceptual question to FAQ section
2023-10-06 03:10:11 +02:00
fricklerhandwerk 8f2514019f add history bit on the logo 2023-10-05 17:59:49 +02:00
fricklerhandwerk 6b2e4aecf3 move conceptual question to FAQ section 2023-10-05 17:59:47 +02:00
fricklerhandwerk 5eafb74584 use pluralised link text 2023-10-05 17:37:30 +02:00
fricklerhandwerk 75b4d54553 use less repetitive wording 2023-10-05 17:37:21 +02:00
fricklerhandwerk 83f400e4d6 fix broken reference links 2023-10-05 17:36:56 +02:00
Valentin Gagarin 742d9b38ed
fix typo 2023-10-05 17:20:14 +02:00
fricklerhandwerk 47d03a8e3b move questions about flakes into FAQ
keep the concept description separate and easy to find at the top level
2023-10-05 16:58:45 +02:00
wamirez 73056b06da put faqs to the bottom of the sidebar 2023-10-04 17:20:12 -04:00
wamirez 0198889157 fix a few typos and add links to some concepts 2023-10-04 16:53:50 -04:00
wamirez b4a2472d96 move 'Should I enable Flakes?' -f recipes -t concepts 2023-10-04 16:16:53 -04:00
a c sreedhar reddy f2fe0aa56b
Remove write space in shebang line (#736) 2023-10-03 10:12:05 +02:00
Rosario Pulella be7c3bec3d
faq: Add nixos-anywhere to bootsrapping NixOS (#734) 2023-10-02 08:55:31 +02:00
Yann Hamdaoui 62db5ba51d
Remove superfluous variation of a snippet (#732)
The cross compilation documentation is showing, at some point, two
variations on how to get a cross-compiled package out of Nixpkgs. Those
two versions are strictly equivalent (the only difference is what part
of the full attribute set paths is put in the variable named `pkgs`) and
don't really improve understanding - arguably, rather hurts it.
2023-09-20 21:51:32 +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
Guillaume Desforges ff9af7402b homepage: put link to first steps at the top. 2023-09-12 15:36:50 +02:00