summary refs log tree commit diff
path: root/nixos/modules/services/desktops/gnome3/gvfs.nix
blob: c4f41a6125c712700fe8b94f4cf2b041174743a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# gvfs backends

{ config, lib, pkgs, ... }:

with 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 ];

    services.udev.packages = [ pkgs.libmtp ];

  };

}