1
2
3
4
5
6
7
8
9
{
  foo.bar = 1;
  #   ^~~  we are implicitly creating a non-recursive attrset
  foo = rec {
    # merging this attrset to foo.bar, discards the `rec` modifier
    x = 1;
    y = x;
  };
}