I use the Apple Music app constantly and never get nagged to buy the service. On macOS, I just unchecked the "Apple Music" checkbox under "Show" in the Music Preferences, and on iOS turned off the "Show Apple Music" toggle in Settings > Music. Boom, no nagging.