Congrats, you'll either be very happy or very sad with your purchase, no in between lol. I bought my truck from a used dealership in Indiana. The inside and outside were super clean, not a scratch or dent on it with over 120k miles. But apparently the previous owner didn't do ANYTHING for maintenance or repair other than change the oil. The air suspension was trashed and would get stuck riding on the bump stops if you put more than 500 lbs in the bed... So I yanked all that crap out and put regular coil suspension in it and coded it out. Then the EGR was leaking and it was also giving symptoms like a bad head gasket (losing coolant fast). Deleted the EGR, still losing coolant. Poured some head gasket in a can into the coolant and it has been fixed for about 20k miles now. Gutted the DPF and bought a tuned ECU off this forum. Ditched the K&N air intake because it was too loud. There was also an exhaust leak at a joint directly under the passenger seat that made it sound like a boost leak (or like a screaming cat or something, it was awful). I put in the Titan 39 gallon diesel tank and I typically get 800-900 miles out of the tank (the dash lies and says I should expect about 1150 from a tank).
Now it's got lots of scratches and little dents, but runs like a top and I'm loving that I can afford to drive a full size truck all over the place and I don't have to go to the gas station all the time.
Welcome to the board, hope some of that info helps you in the future. I haven't seen another full size truck that can go almost 1000 miles to a tank and get 23+mpg and still tow or haul a decent amount, all while being $22k used.