I'm sorry you've had such tough news.
Is there a diagnosis/prognosis if you don't mind my asking?
Only wondering as you may need to prepare for a longer haul than you initially expect. My dad was declared 'end of life' last April with 'frailty' (gastrointestinal cancer was initially suspected but he was too weak for invasive tests).
He has declined massively but is still hanging in there and moved into a residential care home last month.
Your GP should be the one to coordinate support and involvement of other agencies eg hospice, district nurse etc so hopefully they are on the ball.
What kind of immediate family/friends support do you have?
Agree with others that making life at home as comfortable and easy as possible should be a priority...you will need a refuge in the weeks/months ahead. A few things that have helped me...Calm App, aromatherapy, writing, hot baths.
If it all goes to help in a handcart, don't beat yourself up for resorting to takeaway and wine occasionally.
Let the kids school, and your work if relevant know what is going on so they can support if and where possible.
Look into support that might be available should you need it for your own mental health eg talking therapy, helplines etc (I found SHOUT really helpful in a few crisis situations...you chat via text rather than phone which I find much easier).
I know it's a complete mindfuck atm but try and take things one day at a time and allow yourself to switch off and recharge when you have the opportunity.