summaryrefslogtreecommitdiffstats
path: root/slides.md
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2019-10-03 22:18:31 +0200
committerMinijackson <minijackson@riseup.net>2019-10-06 19:52:48 +0200
commit6995b3ee07b70636b184ac76f5d1c90032b3ef79 (patch)
tree50db3174ccea2b0c20433801a935e08f07d7f58e /slides.md
parentc31fb8b184df21662f6cae2dfe3e07167a32a799 (diff)
downloadnixos-embedded-slides-6995b3ee07b70636b184ac76f5d1c90032b3ef79.tar.gz
nixos-embedded-slides-6995b3ee07b70636b184ac76f5d1c90032b3ef79.zip
Fix indentation, add multilineString, add TODO
Diffstat (limited to 'slides.md')
-rw-r--r--slides.md19
1 files changed, 12 insertions, 7 deletions
diff --git a/slides.md b/slides.md
index 9d8774b..1f09fe0 100644
--- a/slides.md
+++ b/slides.md
@@ -191,13 +191,17 @@ of the "package function".
191 191
192```nix 192```nix
193{ 193{
194 int = 1; 194 int = 1;
195 boolean = true; 195 boolean = true;
196 string = "hello ${world}!"; 196 string = "hello ${world}!";
197 "attribute set" = { a = 1; b = 2; }; 197 multilineString = ''
198 list = [ 1 2 "hello" ]; 198 hello
199 function = a: builtins.toString a; 199 initial indentation is removed!
200 "function w/ named parameters" = { a, b, c ? "default"}: a; 200 '';
201 "attribute set" = { a = 1; b = 2; };
202 list = [ 1 2 "hello" ];
203 function = a: builtins.toString a;
204 "function w/ named parameters" = { a, b, c ? "default"}: a;
201} 205}
202``` 206```
203 207
@@ -927,6 +931,7 @@ $ nix build -f default.nix \
927- [ ] Add intro? about problems that I had in Buildroot (non-determinism, no 931- [ ] Add intro? about problems that I had in Buildroot (non-determinism, no
928 auto-recompile) 932 auto-recompile)
929- [ ] Talk about nix-shell 933- [ ] Talk about nix-shell
934- [ ] Talk about nix-shell scripts
930- [ ] Talk about nixops 935- [ ] Talk about nixops
931- [ ] Talk about choosing generation at boot 936- [ ] Talk about choosing generation at boot
932- [ ] Have a functional programming intro 937- [ ] Have a functional programming intro