Well it is really great emotional ending for the series... but completly not accurate and for sure not leggit.
More fitting options for ending could be:
1) Naruto becomes Perfect Jinchurki of Ten Tails as became for Hokage for moment when Sasuke is about to leave with anger painted on his face... but suddenly Naruto resign from The Hokage seat and claim that Sasuke will be Hokage instead of him. Everyone is schocked but Naruto smiles and is happy to finally stop cycle of hatred inside of his own village at least. Instead Naruto known as Next Sage of six paths/Sage of six paths travel around the World with Hinata as Guard of peace helping people solving their conflict while making sure that everlasting peace will never stop. Thanks to becoming friend with Ten tails/ The God tree Naruto became immortal and will live forever ,always staying on guard of order and peace.
2) Naruto breaks cycle of hatred and It is revealed that Naruto was Reincarnation of Hagoromo Ootsutsuki and thanks to stopping cycle of hatred , Naruto finally leaves The World and can go away to heaven as The Buddha.
Naruto would live in the world while being overseer of peace and order, like demi-God or something. In this way Everlasting peace could be protected and never ends as Naruto will never die and always oversee the world notcing the hatred whenever it appear.
3) Naruto and Sasuke accept each other and decided to share their Hokage's seat together
4) Naruto and Sasuke both resign from the Hokage's seat as Travels around the world while staying on guard of everlasting peace..., stopping any evil in it's source before it expands.
etc.
There is no need for Naruto to die... lol