2014-05-25 23:37:36 +01:00
|
|
|
# gvfs backends
|
|
|
|
|
2014-12-11 22:04:00 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
2014-05-25 23:37:36 +01:00
|
|
|
|
2014-05-05 19:58:51 +01:00
|
|
|
with lib;
|
2014-05-25 23:37:36 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### 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 {
|
|
|
|
|
2017-09-24 12:15:50 +01:00
|
|
|
environment.systemPackages = [ pkgs.gnome3.gvfs ];
|
2014-05-25 23:37:36 +01:00
|
|
|
|
2017-09-24 12:15:50 +01:00
|
|
|
services.dbus.packages = [ pkgs.gnome3.gvfs ];
|
2014-05-25 23:37:36 +01:00
|
|
|
|
2017-09-24 12:15:50 +01:00
|
|
|
systemd.packages = [ pkgs.gnome3.gvfs ];
|
2016-09-30 23:59:12 +01:00
|
|
|
|
2015-10-17 22:24:10 +01:00
|
|
|
services.udev.packages = [ pkgs.libmtp.bin ];
|
2014-12-11 22:04:00 +00:00
|
|
|
|
2014-05-25 23:37:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|