2020-04-24 23:36:52 +00:00
|
|
|
# GPaste.
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
programs.gpaste = {
|
2024-05-15 15:35:15 +00:00
|
|
|
enable = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
2020-04-24 23:36:52 +00:00
|
|
|
default = false;
|
2024-04-21 15:54:59 +00:00
|
|
|
description = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
Whether to enable GPaste, a clipboard manager.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
2024-05-15 15:35:15 +00:00
|
|
|
config = lib.mkIf config.programs.gpaste.enable {
|
2024-07-27 06:49:29 +00:00
|
|
|
environment.systemPackages = [ pkgs.gpaste ];
|
|
|
|
services.dbus.packages = [ pkgs.gpaste ];
|
|
|
|
systemd.packages = [ pkgs.gpaste ];
|
2020-09-25 04:45:31 +00:00
|
|
|
# gnome-control-center crashes in Keyboard Shortcuts pane without the GSettings schemas.
|
2024-07-27 06:49:29 +00:00
|
|
|
services.xserver.desktopManager.gnome.sessionPath = [ pkgs.gpaste ];
|
2024-01-02 11:29:13 +00:00
|
|
|
# gpaste-reloaded applet doesn't work without the typelib
|
2024-07-27 06:49:29 +00:00
|
|
|
services.xserver.desktopManager.cinnamon.sessionPath = [ pkgs.gpaste ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|