summary refs log tree commit diff
path: root/nixos/modules/services/desktops/gnome3
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2014-04-11 23:13:31 +0200
committerLuca Bruno <lucabru@src.gnome.org>2014-04-14 09:58:03 +0200
commita5b4c74a163660c1adca8ba273b4902ae65098ea (patch)
treedb1166015c6bb51708895776c3b38325faed5609 /nixos/modules/services/desktops/gnome3
parente08861a4cd7e5e6f84652230bb32d78d4b8dbb3f (diff)
downloadnixlib-a5b4c74a163660c1adca8ba273b4902ae65098ea.tar
nixlib-a5b4c74a163660c1adca8ba273b4902ae65098ea.tar.gz
nixlib-a5b4c74a163660c1adca8ba273b4902ae65098ea.tar.bz2
nixlib-a5b4c74a163660c1adca8ba273b4902ae65098ea.tar.lz
nixlib-a5b4c74a163660c1adca8ba273b4902ae65098ea.tar.xz
nixlib-a5b4c74a163660c1adca8ba273b4902ae65098ea.tar.zst
nixlib-a5b4c74a163660c1adca8ba273b4902ae65098ea.zip
gnome-user-share: new package
Service that exports the contents of the Public folder in your home directory on the local network

https://help.gnome.org/users/gnome-user-share/3.8
Diffstat (limited to 'nixos/modules/services/desktops/gnome3')
-rw-r--r--nixos/modules/services/desktops/gnome3/gnome-user-share.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/nixos/modules/services/desktops/gnome3/gnome-user-share.nix b/nixos/modules/services/desktops/gnome3/gnome-user-share.nix
new file mode 100644
index 000000000000..df796ed77ff4
--- /dev/null
+++ b/nixos/modules/services/desktops/gnome3/gnome-user-share.nix
@@ -0,0 +1,42 @@
+# GNOME User Share daemon.
+
+{ config, pkgs, ... }:
+
+with pkgs.lib;
+
+{
+
+  ###### interface
+
+  options = {
+
+    services.gnome3.gnome-user-share = {
+
+      enable = mkOption {
+        type = types.bool;
+        default = false;
+        description = ''
+          Whether to enable GNOME User Share, a service that exports the
+          contents of the Public folder in your home directory on the local network.
+        '';
+      };
+
+    };
+
+  };
+
+
+  ###### implementation
+
+  config = mkIf config.services.gnome3.gnome-user-share.enable {
+
+    environment.systemPackages = [ pkgs.gnome3.gnome-user-share ];
+
+    services.xserver.displayManager.sessionCommands = with pkgs.gnome3; ''
+      # Don't let gnome-control-center depend upon gnome-user-share
+      export XDG_DATA_DIRS=$XDG_DATA_DIRS''${XDG_DATA_DIRS:+:}${gnome-user-share}/share/gsettings-schemas/${gnome-user-share.name}
+    '';
+
+  };
+
+}