I think if Russia keeps dombas, crimea and gets guarantee Ukraine won't join Nato they will see it as a victory. Any less would be seen as a defeat.
It depends on defeated by who?
Set aside whether or not Ukraine would accept those condition, let's say they do, that's only a win against Ukraine. When you compare it on NATO and the entire West, Russia loses is all Russia, while Ukrainian is not in NATO, so there were no NATO loses with all those Russian lose to goes with. So regardless, that's not going to be a win materiel wise because at best, Russia would destroy around 100 or so Western Tank, 20 or so HIMARS, 200-300 Western APC, that's nothing.
On the strategic ends, you also need to look at how much Russia pays to achieve those "Victories" the entire Russian Armed Force is decimated. They weren't supposed to use convict to fight wars, they weren't supposed to use Wagner to fight conventional war, unless you are telling me Russia had not devote any traditional power in this play, using those force suggesting their conventional power is being decimated. Then you will need to look at what next. Because even if peace treaty was sign, the war will not end there if Ukraine decided to do insurgency in Russian-Controlled Ukraine. that would have been multi-decade long struggle, can Russia keep up the momentum if Ukraine choose this? That remain to be seen, because we are still at invasion phase of this war some 390 days after the war started.
On the other hand, Ukraine would most likely not going to agree to the condition you listed, there were still not a single military defeat that make Ukraine think that way, if that is the option on the table, Ukraine will most likely keep on fighting.