2019-08-09 16:43:00 +00:00
|
|
|
# GPaste.
|
2017-09-24 11:15:50 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
2017-09-02 14:54:03 +00:00
|
|
|
|
|
|
|
{
|
2019-08-09 16:43:00 +00:00
|
|
|
|
2017-09-02 14:54:03 +00:00
|
|
|
###### interface
|
|
|
|
options = {
|
2019-08-09 16:43:00 +00:00
|
|
|
programs.gpaste = {
|
2024-04-30 16:57:01 +00:00
|
|
|
enable = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
2017-09-02 14:54:03 +00:00
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
Whether to enable GPaste, a clipboard manager.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
2024-04-30 16:57:01 +00:00
|
|
|
config = lib.mkIf config.programs.gpaste.enable {
|
2024-06-22 13:56:13 +00:00
|
|
|
environment.systemPackages = [ pkgs.gpaste ];
|
|
|
|
services.dbus.packages = [ pkgs.gpaste ];
|
|
|
|
systemd.packages = [ pkgs.gpaste ];
|
2020-09-01 20:21:09 +00:00
|
|
|
# gnome-control-center crashes in Keyboard Shortcuts pane without the GSettings schemas.
|
2024-06-22 13:56:13 +00:00
|
|
|
services.xserver.desktopManager.gnome.sessionPath = [ pkgs.gpaste ];
|
2023-12-14 17:27:54 +00:00
|
|
|
# gpaste-reloaded applet doesn't work without the typelib
|
2024-06-22 13:56:13 +00:00
|
|
|
services.xserver.desktopManager.cinnamon.sessionPath = [ pkgs.gpaste ];
|
2017-09-02 14:54:03 +00:00
|
|
|
};
|
|
|
|
}
|