As of August 2024, it looks like notesnook now has a sync server that can be self-hosted.
According to their roadmap, they've completed 3 of 4 steps to allow self-hosting, although the fourth is 'just' documentation.
The last time I tried notesnook I thought the interface was great. Would love to try it with a self hosted sync server.