summaryrefslogtreecommitdiff
path: root/3 resources/programming/Nix.md
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2024-11-23 17:34:50 +0100
committerJasper Ras <jras@hostnet.nl>2024-11-23 17:34:50 +0100
commit80153a133d0888b7c0a7b72a9f80ccc6f005c555 (patch)
tree261af65acfe995e7254152136af119af489c7354 /3 resources/programming/Nix.md
parentdbe655fca3cf4fc5bc882015006f006764eace52 (diff)
sorted out inbox
Diffstat (limited to '3 resources/programming/Nix.md')
-rw-r--r--3 resources/programming/Nix.md16
1 files changed, 0 insertions, 16 deletions
diff --git a/3 resources/programming/Nix.md b/3 resources/programming/Nix.md
deleted file mode 100644
index fca31a8..0000000
--- a/3 resources/programming/Nix.md
+++ /dev/null
@@ -1,16 +0,0 @@
- `nix repl` to interactively evaluate Nix expressions. `:p` if output is not full.
- `nix-instantiate --eval <file>.nix` to evaluate a Nix expression from a file. `--strict`.
-
-Nix is like JSON, but with functions.
-Recursive attribute sets can reference values declared earlier in the same set.
-```nix
-rec {
- one = 1;
- two = one + 1;
-}
-```
-
-A `let` binding is used to assign names to values just as attribute sets, they can then be used in expressions. Let bindings have a local scope.
-
-A `with` allows referencing attributes of attribute sets without referencing the set.
-