Take a look at all the options
There are smaller than one way to generate solar energy in space. Solar electric, which we call solar panels is one way. Solar thermal, using the heat of the solar energy was already mentioned. An option that I think might actually be dominant for space-based civilization is thermao electric. Here we use heat to directly produce energy.
Look at your environment
You are discussing settling a red dwarf star. The first issue that comes to mind is that those are often flare stars that can experience mass ejections which can raise their brightness and energy output by orders of magnitudes. We don't quite understand why this happens and young ones are usually more active, but we have seen very old ones still do occasional flaring. In a way occasional flaring is actually worse. If you have massive flares every other day, your infrastructure is built for this. If you have a massive flare every thousand years, this is an existential risk to your civilization.
The next factor is that it outputs most of its energy in the infrared as you already mentioned.
Furthermore, if one wants to do energy production for an advanced civilization, one must understand the geometry of the situation one is in. Basically, your source of life is a spherical hot object. Given that this object gives off its heat as radiation the intensity of this radiation scales with the inverse of the distance squared. As an example, consider that sunlight at Earth has a strength level of one. If we move out to double this distance, we don't have half the sunlight, we have one quarter. Conversely, if you move into half the distance, you have four times the energy. At 1% of the distance, you have 10,000 times the energy.
Luckily, we can transmit energy much more efficiently than light just spreading out from the sun. The laser beam can be or target for several astronomical units. If one works with ultraviolet laser frequencies, putting 50 m mirror relay stations every few astronomical units will give you a powerful space-based energy grid. This is how you actually do space-based solar correctly. You place generator stations as close to the sun as you can get away with. They generate lasers, those lasers transport the energy to receiver stations elsewhere in the system.
The economics of this are amazing. Imagine that only 1% of the solar input actually ends up as usable energy where you need it. If we now put our generator at the 1% off the distance between the Earth and the Sun, we still get the same energy from this generator as we would have gotten from 100 generators in the position where we we'll have our infrastructure. And I think realistic efficiency rates for the system are probably between 30 and 60%.
In this situation, thermo-electric elements make sense. They are relatively inefficient at low temperatures, but if you get them to several thousand Kelvin, they become impressively efficient. Cheap mirrors and a close distance to the star can easily create the temperature of the stars surface on your generator. Expect efficiencies between 70 and 90% here.
Notably, those systems are also more flare resistant than the alternatives. There are no moving parts unlike in thermal electric systems. They don't require complex material science, unlike solar panels.
Given your risk of flares, you likely want warning systems. Your power satellites are likely grouped together in tight constellations. If your solar monitors detect the flare is incoming, you maneuver them behind each other. One satellite in the constellation is a hydrogen storage tank with a tungsten shield. This shield has little holes in it. For the duration of a flare, we hide the satellites behind this one and slowly bleed hydrogen through the shield to keep it cool.
Alternatively you could of course consider your power satellites disposable and just launch new ones. If you have self-replicating machines, this might actually be the economical option. A big advantage of using lasers to transfer the energy out to your habitat stations, is that you don't lose as much in the case of a flare. You'll probably want backup systems for energy. A simple solution would be to rotate the counter rotating shells of your habitat stations slightly faster. Built a generator in there. You will probably only lose a few percent of gravity if you run your habitat off its own rotational energy for a few days or even weeks.
Gravitational energy as another alternative
If you find that solar energy is too much of a hassle or a danger, gravitational energy can also be used. Pick one of the outer planets or a big comet. Place a mass driver on it. Shoot rocks off this planet and target a place near your infrastructure in the inner system. The rock will develop a lot of kinetic energy falling into the gravity well of the Sun. Have it impact a target big enough to vaporize it and The Rock. Do this within a magnetic fields and the resulting plasma will generate electricity for you.