Attribute Set

#nix #nixos #language #programming

Collection of value

attribute-set = {
	a = "hello";
	b = 2;
	c = 2.718;
	d = false;
}; # comments are supported
# Recursive one
rec {
	one = 1;
	two = ones + 1;
	three = two + 1;
}

Expressions Nix: let…in are expressions with the same function of rec

Links to this page
#nix #nixos #language #programming