mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
f3a46c3858
To support browsing files on Android phones in Nautilus (and other GVFS based file browsers).
45 lines
671 B
Nix
45 lines
671 B
Nix
# 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 ];
|
|
|
|
};
|
|
|
|
}
|