In electronic systems with flat bands, such as twisted bilayer graphene, interaction effects govern the structure of the phase diagram. In this paper, we show that a strongly interacting system featuring fermionic flat bands can be engineered using the holographic duality. In particular, we find that in the holographic nematic phase, two bulk Dirac cones separated in momentum space at low temperature, approach each other as the temperature increases. They eventually collide at a critical temperature yielding a flattened band with a quadratic dispersion. On the other hand, in the symmetric (Lifshitz) phase, this quadratic dispersion relation holds for any finite temperature. We therefore obtain a first holographic, strong-coupling realization of a topological phase transition where two Berry monopoles of charge one merge into a single one with charge two, which may be relevant for two- and three-dimensional topological semimetals.