diff options
author | Minijackson <minijackson@riseup.net> | 2019-10-03 22:18:31 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2019-10-06 19:52:48 +0200 |
commit | 6995b3ee07b70636b184ac76f5d1c90032b3ef79 (patch) | |
tree | 50db3174ccea2b0c20433801a935e08f07d7f58e /slides.md | |
parent | c31fb8b184df21662f6cae2dfe3e07167a32a799 (diff) | |
download | nixos-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.md | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -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 |