Primitive Data Types

References:

Strings

[[strings|Single line strings]] are enclosed in quotes " ... ":

value = "string"

or multi-line with '' ... '':

value = '' multi
line
string
''

Numbers

numbers|Integers:

value = 1

numbers|floating point numbers:

value = 1.5

Null

value = null

Paths

paths#Absolute paths|Absolute paths:

value = /path/to

paths#Relative Paths|Relative Paths:

value = ./path

[!warning] Paths in Nix cannot include trailing slashes /

value = ./path/
# result: error: path has a trailing slash

Boolean

value = true # or false