Commit Graph

330 Commits

Author SHA1 Message Date
Valentin Gagarin
0c7c1eb594 everyone calls them side effects 2022-10-04 08:34:31 +02:00
Valentin Gagarin
76561aa33a add structure to config example 2022-10-04 08:34:31 +02:00
Valentin Gagarin
f5439cdbc4 expand shell example 2022-10-04 08:34:31 +02:00
Valentin Gagarin
67b5187a30 clarify outline 2022-10-04 08:34:31 +02:00
Valentin Gagarin
ca66ac9a6a guide -> direct 2022-10-04 08:34:31 +02:00
Valentin Gagarin
573586b684 prerequisites: programming languages -> software development 2022-10-04 08:34:31 +02:00
Valentin Gagarin
7f6404c1ae restructure intro to functions 2022-10-04 08:34:31 +02:00
Valentin Gagarin
ceff1d7713 json example: set -> object 2022-10-04 08:34:31 +02:00
Valentin Gagarin
678d3ce737 restrucutre note on . and .. paths 2022-10-04 08:34:31 +02:00
Valentin Gagarin
c510aeb295 show example passing an attrset 2022-10-04 08:34:31 +02:00
Valentin Gagarin
f3e192e3b8 add note on ./. syntax 2022-10-04 08:34:31 +02:00
Valentin Gagarin
5a638c5ed8 fix grammar and typo 2022-10-04 08:34:31 +02:00
Valentin Gagarin
f1c90cdda5 function call: argument -> operand 2022-10-04 08:34:31 +02:00
Valentin Gagarin
f6ad05bf24 comment out missing links 2022-10-04 08:34:31 +02:00
Valentin Gagarin
4273dc987f tutorial -> guide 2022-10-04 08:34:31 +02:00
Valentin Gagarin
c0ca352c83 remove trivial builders from libraries
they really belong to generic build mechanisms, and we will not cover
them here.
2022-10-04 08:34:31 +02:00
Valentin Gagarin
d16b6fcf72 add section on libraries 2022-10-04 08:34:31 +02:00
Valentin Gagarin
c7729502bc remove description of language properties
this should be in the Nix manual
2022-10-04 08:34:31 +02:00
Valentin Gagarin
c0b0c2ba32 add link to Nix Pills 2022-10-04 08:34:31 +02:00
Valentin Gagarin
354f8cba72 add aka @ pattern 2022-10-04 08:34:31 +02:00
Valentin Gagarin
cb14464be1 reword intro to inherit 2022-10-04 08:34:31 +02:00
Valentin Gagarin
ef5f3823cc uniform format for code samples 2022-10-04 08:34:31 +02:00
Valentin Gagarin
e4bfdf0707 add overview on what using Nix language entails
inspired by https://news.ycombinator.com/item?id=32364899
2022-10-04 08:34:30 +02:00
Valentin Gagarin
5bc7fa3ebb expand NixOS config example 2022-10-04 08:34:30 +02:00
Valentin Gagarin
0e529426f7 add todo to clarify string interpolation and bash variables 2022-10-04 08:34:30 +02:00
Valentin Gagarin
efaf7a82b7 add aka antiquotation 2022-10-04 08:34:30 +02:00
Valentin Gagarin
792ffe8f16 add draft on side effects 2022-10-04 08:34:30 +02:00
Valentin Gagarin
807665e3ae fix rendering errors 2022-10-04 08:34:30 +02:00
Valentin Gagarin
a26c1825ea clarify language properties 2022-10-04 08:34:30 +02:00
Valentin Gagarin
1862f364e6 add summary of learnings 2022-10-04 08:34:30 +02:00
Valentin Gagarin
8f93a41e0a add notation for assigning nested attributes 2022-10-04 08:34:30 +02:00
Valentin Gagarin
a2c88a1d20 expand on accessing values 2022-10-04 08:34:30 +02:00
Valentin Gagarin
6621db635c use console highlighting where appropriate 2022-10-04 08:34:30 +02:00
Valentin Gagarin
b5db48cd6f uniform example format 2022-10-04 08:34:30 +02:00
Valentin Gagarin
13ad04881c simpler let ... in alias 2022-10-04 08:34:30 +02:00
Valentin Gagarin
8dee6f4894 attrsets are unordered 2022-10-04 08:34:30 +02:00
Valentin Gagarin
e48e524ff6 fixes and TODOs 2022-10-04 08:34:30 +02:00
Valentin Gagarin
fc12f3606c reorder sections 2022-10-04 08:34:30 +02:00
Valentin Gagarin
6b807a91c5 add evaluation result to example 2022-10-04 08:34:30 +02:00
Valentin Gagarin
87df93e7f8 sharpen title to narrow scope 2022-10-04 08:34:30 +02:00
Valentin Gagarin
558ec3b67e clarify what expressions and values are 2022-10-04 08:34:30 +02:00
Valentin Gagarin
8e332a4a4e clarify scope 2022-10-04 08:34:30 +02:00
Valentin Gagarin
637cef7e10 add learning goals and prerequisites 2022-10-04 08:34:30 +02:00
Valentin Gagarin
397ed9f7d9 add instructions to run examples 2022-10-04 08:34:30 +02:00
Valentin Gagarin
95f364d714 reorder language properties, add dynamic typing 2022-10-04 08:34:30 +02:00
Valentin Gagarin
670c8e2d80 add alternative to @ syntax 2022-10-04 08:34:30 +02:00
Valentin Gagarin
50a21f1fbc do not claim rec is not suitable for static analysis 2022-10-04 08:34:30 +02:00
Valentin Gagarin
00f1366b7b fix typo 2022-10-04 08:34:30 +02:00
Valentin Gagarin
884b7858be draft: nix language tutorial
based on @tazjin's tazjin/nix-1p [1] and @zimbatm's NixCon 2019 talk "Reading The Nix Language" [2]

[1]: https://github.com/tazjin/nix-1p
[2]: https://youtu.be/hbJkMl631FE?t=1572
2022-10-04 08:34:30 +02:00
Valentin Gagarin
cd0759d2af
Merge pull request #320 from sbruder/highlight-shell-io
add highlighting for shell input/output
2022-09-30 01:50:22 +02:00