I did that, and I have to say it does NOT play with linux very nicely. I had to change the UID and GID on my desktop for my default user and all of my files because Ubuntu starts with UID 1 and Synology starts with UID 26, so after you figure out how to mount the disk as nfs it says you don't have permission to access it (because your UID does not match the UID of the device). Solving this was one of those problems where you go back 10 years and so many people have posted forum posts and the answer was always some weird hack, and Synology has never fixed it. Changing the UID of my user on my desktop was the easiest hack. Then I installed another OS to dual boot and had to change the UID for that one too, so I could access my files, and somehow the "easy" NAS option has made me jump through lots of hoops.
Turns out self hosting is not easy even when you buy a Synology.