2020-04-24 23:36:52 +00:00
|
|
|
# GPaste.
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
# Added 2019-08-09
|
|
|
|
imports = [
|
|
|
|
(mkRenamedOptionModule
|
|
|
|
[ "services" "gnome3" "gpaste" "enable" ]
|
|
|
|
[ "programs" "gpaste" "enable" ])
|
|
|
|
];
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
programs.gpaste = {
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
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
|
|
|
|
config = 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
|
|
|
};
|
|
|
|
}
|