How to install xournalpp with tex math formula support

This is the minimal requirements with home manager.

packages = with pkgs; [
  xournalpp
  (texlive.combine {
    inherit (texlive) scheme-basic standalone
    varwidth scontents xcolor;
  })
]

Try these latex to make matrix

\begin{bmatrix}
a & b \\
c & d
\end{bmatrix}