summary refs log tree commit diff
path: root/nixos/modules/services/desktops
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2014-05-26 00:37:36 +0200
committerLuca Bruno <lucabru@src.gnome.org>2014-05-26 11:13:51 +0200
commit2131313fa61276c8d246f780890ea81bc5c889d8 (patch)
treef6dc059dcd53eb811c18596b0da09669f4f5ffd9 /nixos/modules/services/desktops
parentb0234f216ccf71013daf8e4e8b8bcfc4044d36cf (diff)
downloadnixlib-2131313fa61276c8d246f780890ea81bc5c889d8.tar
nixlib-2131313fa61276c8d246f780890ea81bc5c889d8.tar.gz
nixlib-2131313fa61276c8d246f780890ea81bc5c889d8.tar.bz2
nixlib-2131313fa61276c8d246f780890ea81bc5c889d8.tar.lz
nixlib-2131313fa61276c8d246f780890ea81bc5c889d8.tar.xz
nixlib-2131313fa61276c8d246f780890ea81bc5c889d8.tar.zst
nixlib-2131313fa61276c8d246f780890ea81bc5c889d8.zip
Add gvfs dbus service and gvfs gio modules to gnome 3
Closes #2746
Diffstat (limited to 'nixos/modules/services/desktops')
-rw-r--r--nixos/modules/services/desktops/gnome3/gvfs.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/nixos/modules/services/desktops/gnome3/gvfs.nix b/nixos/modules/services/desktops/gnome3/gvfs.nix
new file mode 100644
index 000000000000..1a003ddd1efb
--- /dev/null
+++ b/nixos/modules/services/desktops/gnome3/gvfs.nix
@@ -0,0 +1,42 @@
+# gvfs backends
+
+{ config, pkgs, ... }:
+
+with pkgs.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 ];
+
+  };
+
+}