I used Zim (https://zim-wiki.org/manual/Help/Notebooks.html) for a while and found it useful.
Zim looks to be a good self-hosted alternative to my dokuwiki instance, but as it lacks embedding images, file attachments, ink support, it's not quite there.
But yeah, definitely not as feature full as Onenote.
If you're looking for ink support, I've messed with Xournal and it's pen support was good.