How to extend attribute sets?

In nix, you can extend a list by using ++ for example:

let
  a = [1 2];
  b = [3 4];
in {
    c = a ++ b; # c = [1 2 3 4]
}

is there an operation for attribute sets? Like:

let
  a = {
    yeet = "the child";
  };
  b = {
    hello = "world";
  }
in {
  c = a <?> b; # c = { yeet = "the child"; hello = "world"; };
}

?

1 Like

https://nixos.org/manual/nix/stable/language/operators.html#update

1 Like