3 { config, lib, pkgs, ... }:
7 cfg = config.services.gvfs;
14 maintainers = lib.teams.gnome.members;
23 enable = lib.mkEnableOption "GVfs, a userspace virtual filesystem";
25 # gvfs can be built with multiple configurations
26 package = lib.mkPackageOption pkgs [ "gnome" "gvfs" ] { };
35 config = lib.mkIf cfg.enable {
37 environment.systemPackages = [ cfg.package ];
39 services.dbus.packages = [ cfg.package ];
41 systemd.packages = [ cfg.package ];
43 services.udev.packages = [ pkgs.libmtp.out ];
45 services.udisks2.enable = true;
47 # Needed for unwrapped applications
48 environment.sessionVariables.GIO_EXTRA_MODULES = [ "${cfg.package}/lib/gio/modules" ];