Fixing the steering on a DS is a major operation, make sure you get the shop manual and if you can practice on a junker before doing it on your real car, it is probably one of the most labor intensive jobs you could do on that car.
Rebuilt units can be bought, they're better than the originals and should last the (remaining) lifetime of the car, I would definitely recommend against trying to rebuild one yourself, they are super finicky to work on and require a ton of specialist tooling (and experience) to do the work properly.
Note that there are right and left hand drive versions of these. Also there typically is a charge if you don't give them your old one for rebuild in return after you've completed the transplant, and, of course there is a huge difference between the 'red' and the 'green' version, which has to do with the sealing materials used, the 'red' system uses a hydraulic oil which is extremely corrosive.
One example (green, LHD):
https://citrotech.nl/shop/product/stuurhuis-ds-lhm-linksgest...
Obviously, after replacing the steering housing you'll need to have the car aligned again, and while you are at it you may as well replace CV boots and ball joints since it is mostly just the price of the materials at that point.