summary refs log tree commit diff
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-09-01 22:21:09 +0200
committerJan Tojnar <jtojnar@gmail.com>2020-09-01 22:21:09 +0200
commit3b68a757ffc5321eccfed186af17037adff10b62 (patch)
tree4723e13e171dda00b23f66b0e3f303128c1c0f6b
parentc59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38 (diff)
downloadnixpkgs-3b68a757ffc5321eccfed186af17037adff10b62.tar
nixpkgs-3b68a757ffc5321eccfed186af17037adff10b62.tar.gz
nixpkgs-3b68a757ffc5321eccfed186af17037adff10b62.tar.bz2
nixpkgs-3b68a757ffc5321eccfed186af17037adff10b62.tar.lz
nixpkgs-3b68a757ffc5321eccfed186af17037adff10b62.tar.xz
nixpkgs-3b68a757ffc5321eccfed186af17037adff10b62.tar.zst
nixpkgs-3b68a757ffc5321eccfed186af17037adff10b62.zip
nixos/gpaste: return sessionPath
GPaste ships keybindings for gnome-control-center. Those depend on GSettings schemas
but there is currently no mechanism for loading schemas other than using global ones
from $XDG_DATA_DIRS. Eventually, I want to add such mechanism but until then,
let's return the impure sessionPath option that was removed in
https://github.com/NixOS/nixpkgs/commit/f63d94eba340c05cd241c478deb518204514fce8
-rw-r--r--nixos/modules/programs/gpaste.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/programs/gpaste.nix b/nixos/modules/programs/gpaste.nix
index 4f6deb77e5e..8bc52c28d81 100644
--- a/nixos/modules/programs/gpaste.nix
+++ b/nixos/modules/programs/gpaste.nix
@@ -30,5 +30,7 @@ with lib;
     environment.systemPackages = [ pkgs.gnome3.gpaste ];
     services.dbus.packages = [ pkgs.gnome3.gpaste ];
     systemd.packages = [ pkgs.gnome3.gpaste ];
+    # gnome-control-center crashes in Keyboard Shortcuts pane without the GSettings schemas.
+    services.xserver.desktopManager.gnome3.sessionPath = [ pkgs.gnome3.gpaste ];
   };
 }