Installing Nautilus directly from Nixpkgs in Non-NixOS systems have no support for mounting sftps and other features that needs gvfs.
The solution for this is to install gnome3.gvfs
in your packages list and then setup the env variable like this:
home.packages = with pkgs; [
gnome3.gvfs
gnome3.nautilus
];
home.sessionVariables = {
GIO_EXTRA_MODULES = "${pkgs.gvfs}/lib/gio/modules";
}
Note: This may break other GIO modules, but I'm not sure whose programs use it tbh.
thanks @Pablo1107 it helped with Thunar as well as expected!