Nix is a language. It has numbers. You can add them.
1 + 2
The above expression evaluates to 3
. If you have nix installed, try running nix repl
and pasting that in.
"hello nix!"
Here you can see a string.
"escapes\nand\nnewlines" == "escapes
and
newlines"
Nix has booleans.
!(true && false) || false
Nix has sets, key value pairs known as records, maps, or objects in other lanugages. They can be nested.
{ foo = 123; }.foo