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 {
|
2021-05-20 23:08:51 +00:00
|
|
|
environment.systemPackages = [ pkgs.gnome.gpaste ];
|
|
|
|
services.dbus.packages = [ pkgs.gnome.gpaste ];
|
|
|
|
systemd.packages = [ pkgs.gnome.gpaste ];
|
2020-09-25 04:45:31 +00:00
|
|
|
# gnome-control-center crashes in Keyboard Shortcuts pane without the GSettings schemas.
|
2021-05-20 23:08:51 +00:00
|
|
|
services.xserver.desktopManager.gnome.sessionPath = [ pkgs.gnome.gpaste ];
|
2024-01-02 11:29:13 +00:00
|
|
|
# gpaste-reloaded applet doesn't work without the typelib
|
|
|
|
services.xserver.desktopManager.cinnamon.sessionPath = [ pkgs.gnome.gpaste ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|