1# GPaste.
2{ config, lib, pkgs, ... }:
3
4{
5
6 ###### interface
7 options = {
8 programs.gpaste = {
9 enable = lib.mkOption {
10 type = lib.types.bool;
11 default = false;
12 description = ''
13 Whether to enable GPaste, a clipboard manager.
14 '';
15 };
16 };
17 };
18
19 ###### implementation
20 config = lib.mkIf config.programs.gpaste.enable {
21 environment.systemPackages = [ pkgs.gnome.gpaste ];
22 services.dbus.packages = [ pkgs.gnome.gpaste ];
23 systemd.packages = [ pkgs.gnome.gpaste ];
24 # gnome-control-center crashes in Keyboard Shortcuts pane without the GSettings schemas.
25 services.xserver.desktopManager.gnome.sessionPath = [ pkgs.gnome.gpaste ];
26 # gpaste-reloaded applet doesn't work without the typelib
27 services.xserver.desktopManager.cinnamon.sessionPath = [ pkgs.gnome.gpaste ];
28 };
29}