Anyone know how to use sonarr and radarr with NixOS?

When trying to do a library import, sonarr tells me that “folder is not writable by user sonarr”. Any ideas?