.xprofile being sourced twice after updating to 21.05

After updating my NixOS to 21.05, my .xprofile is being sourced twice. There’s a bug report here, but no-one has been able to help there, so I thought asking here might help. Any ideas where to start looking?