summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2018-07-23 04:11:03 +0200
committerJan Tojnar <jtojnar@gmail.com>2018-08-01 19:14:30 +0200
commitf63d94eba340c05cd241c478deb518204514fce8 (patch)
tree374434426e687b31d21c45110d824a83dcf73907 /nixos/modules
parent0e1c01451fdc8f076ae99bb36c12e5107abf7c4e (diff)
downloadnixlib-f63d94eba340c05cd241c478deb518204514fce8.tar
nixlib-f63d94eba340c05cd241c478deb518204514fce8.tar.gz
nixlib-f63d94eba340c05cd241c478deb518204514fce8.tar.bz2
nixlib-f63d94eba340c05cd241c478deb518204514fce8.tar.lz
nixlib-f63d94eba340c05cd241c478deb518204514fce8.tar.xz
nixlib-f63d94eba340c05cd241c478deb518204514fce8.tar.zst
nixlib-f63d94eba340c05cd241c478deb518204514fce8.zip
gnome3.gpaste: hard-code paths
GPaste GNOME Shell extension uses GPaste library generated via introspection. Previously, we added the gpaste package to services.xserver.desktopManager.gnome3.sessionPath option, which
added its typelib directory to GI_TYPELIB_PATH environment variable globally, in order for GNOME Shell to be able to find it. This is not very Nix-y, though, so we have decided to patch the code to
append the path to the GI repository search path.

Additionally, the code relies on GPaste’s GSettings schemas, so we had to hard-code the paths to them as well. We ignored the GNOME Shell’s schemas, since they will already be available for the
extension inside GNOME Shell program.
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/desktops/gnome3/gpaste.nix1
1 files changed, 0 insertions, 1 deletions
diff --git a/nixos/modules/services/desktops/gnome3/gpaste.nix b/nixos/modules/services/desktops/gnome3/gpaste.nix
index 5a8258775e0a..512aac35a17a 100644
--- a/nixos/modules/services/desktops/gnome3/gpaste.nix
+++ b/nixos/modules/services/desktops/gnome3/gpaste.nix
@@ -21,7 +21,6 @@ with lib;
   config = mkIf config.services.gnome3.gpaste.enable {
     environment.systemPackages = [ pkgs.gnome3.gpaste ];
     services.dbus.packages = [ pkgs.gnome3.gpaste ];
-    services.xserver.desktopManager.gnome3.sessionPath = [ pkgs.gnome3.gpaste ];
     systemd.packages = [ pkgs.gnome3.gpaste ];
   };
 }