diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index b80ecce90ce8..bc70770005c9 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -107,6 +107,7 @@ ./services/desktops/gnome3/gnome-online-accounts.nix ./services/desktops/gnome3/gnome-online-miners.nix ./services/desktops/gnome3/gnome-user-share.nix + ./services/desktops/gnome3/gvfs.nix ./services/desktops/gnome3/seahorse.nix ./services/desktops/gnome3/sushi.nix ./services/desktops/gnome3/tracker.nix diff --git a/nixos/modules/services/desktops/gnome3/gvfs.nix b/nixos/modules/services/desktops/gnome3/gvfs.nix new file mode 100644 index 000000000000..1a003ddd1efb --- /dev/null +++ b/nixos/modules/services/desktops/gnome3/gvfs.nix @@ -0,0 +1,42 @@ +# gvfs backends + +{ config, pkgs, ... }: + +with pkgs.lib; + +let + gnome3 = config.environment.gnome3.packageSet; +in +{ + + ###### interface + + options = { + + services.gnome3.gvfs = { + + enable = mkOption { + type = types.bool; + default = false; + description = '' + Whether to enable gvfs backends, userspace virtual filesystem used + by GNOME components via D-Bus. + ''; + }; + + }; + + }; + + + ###### implementation + + config = mkIf config.services.gnome3.gvfs.enable { + + environment.systemPackages = [ gnome3.gvfs ]; + + services.dbus.packages = [ gnome3.gvfs ]; + + }; + +} diff --git a/nixos/modules/services/x11/desktop-managers/gnome3.nix b/nixos/modules/services/x11/desktop-managers/gnome3.nix index 74d9fee2357e..3d1c86088833 100644 --- a/nixos/modules/services/x11/desktop-managers/gnome3.nix +++ b/nixos/modules/services/x11/desktop-managers/gnome3.nix @@ -63,6 +63,7 @@ in { services.gnome3.gnome-keyring.enable = true; services.gnome3.gnome-online-accounts.enable = mkDefault true; services.gnome3.gnome-user-share.enable = mkDefault true; + services.gnome3.gvfs.enable = true; services.gnome3.seahorse.enable = mkDefault true; services.gnome3.sushi.enable = mkDefault true; services.gnome3.tracker.enable = mkDefault true; @@ -101,7 +102,8 @@ in { }; environment.variables.GIO_EXTRA_MODULES = [ "${gnome3.dconf}/lib/gio/modules" - "${gnome3.glib_networking}/lib/gio/modules" ]; + "${gnome3.glib_networking}/lib/gio/modules" + "${gnome3.gvfs}/lib/gio/modules" ]; environment.systemPackages = [ pkgs.desktop_file_utils gnome3.glib_networking