Nix let expressions

A let expression allows you to define variables in the local scope of an expression.

Examples

let
  x = 123
  y = 4
in
  x + y

This evaluates to 127.