2014-05-26 00:37:36 +02:00
|
|
|
# gvfs backends
|
|
|
|
|
2014-12-11 23:04:00 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
2014-05-26 00:37:36 +02:00
|
|
|
|
2014-05-05 20:58:51 +02:00
|
|
|
with lib;
|
2014-05-26 00:37:36 +02:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
|
2015-10-17 23:24:10 +02:00
|
|
|
services.udev.packages = [ pkgs.libmtp.bin ];
|
2014-12-11 23:04:00 +01:00
|
|
|
|
2014-05-26 00:37:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|