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;
|
|
|
|
description = ''
|
|
|
|
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 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|