Skip to content

Instantly share code, notes, and snippets.

@Pablo1107
Created June 3, 2023 20:24
Show Gist options
  • Save Pablo1107/4afd86a7a5c086443a3a6dd07faa352d to your computer and use it in GitHub Desktop.
Save Pablo1107/4afd86a7a5c086443a3a6dd07faa352d to your computer and use it in GitHub Desktop.
Setup gvfs to work with Nautilus in Non-NixOS using Home Manager

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment