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