Since I don't listen to much music on my phone, I've actually taken in a step further: my Apple Music local library music files are stored in a .sparsebundle on my NAS. I wrote a little Obj-C app to automatically mount and unmount that sparsebundle when I open and close Apple Music (née iTunes) on MacOS. This prevents the sparsebundle from becoming corrupted, as they tend to do.
Then, I use that same little Obj-C app to detect when I'm away from home and open a VPN connection to my NAS's network. So, wherever I am, I can stream music on my laptop from my local library.
After doing this for a few years instead of paying for Apple Music, it has already saved the cost of the NAS and its hard drives.
Then, I use that same little Obj-C app to detect when I'm away from home and open a VPN connection to my NAS's network. So, wherever I am, I can stream music on my laptop from my local library.
After doing this for a few years instead of paying for Apple Music, it has already saved the cost of the NAS and its hard drives.