1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{
  foo = {
    # this attribute set is not recursive
    bar = 1;
  };
  foo = rec {
    # merging this attrset to foo.bar, discards the `rec` modifier
    x = 1;
    y = x;
  };
}