Nautilus not working properly due to missing PATH in dbus

I meant that if your desktop environment does not do it and you use display manager, you can use services.xserver.updateDbusEnvironment NixOS option to have the session script generated by the display manager NixOS module do it for you.