Meal prep is the key to keeping the discipline in terms of cooking cheap, high-quality meals for yourself. If you understand some fundamentals about how to store food and scaling recipes up, you can leverage your time very well. In a given week, I spend ~2 hours in the kitchen total. Of this, about 1 hour is spent per week doing meal prep. The other hour is time spent re-heating or preparing the final meal for consumption across each day.
The most powerful way to engage this is using simple, predicable, efficient tools & processes. I use very few tools in my kitchen. Iron skillet, 2.5qt iron pot for frying, and an instant pot for pressure cooking. That's about it. I prepare stuff in ~1 week batches, usually on weekends.
I spend ~$150/m on groceries, and maybe $100/year on food that I don't make for myself. Every meal I eat is arguably of very high quality compared to available alternative vendors. Watching others order door dash every single day as their sole source of sustenance has me somewhat disappointed in society. The amount of money most people spend on food is incredible to me, especially considering the quality in most cases.