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
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
2019-08-09 16:43:00 +00:00
|
|
|
|
|
|
|
# Added 2019-08-09
|
|
|
|
imports = [
|
|
|
|
(mkRenamedOptionModule
|
|
|
|
[ "services" "gnome3" "gpaste" "enable" ]
|
|
|
|
[ "programs" "gpaste" "enable" ])
|
|
|
|
];
|
|
|
|
|
2017-09-02 14:54:03 +00:00
|
|
|
###### interface
|
|
|
|
options = {
|
2019-08-09 16:43:00 +00:00
|
|
|
programs.gpaste = {
|
2017-09-02 14:54:03 +00:00
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
Whether to enable GPaste, a clipboard manager.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
2019-08-09 16:43:00 +00:00
|
|
|
config = mkIf config.programs.gpaste.enable {
|
2017-09-24 11:15:50 +00:00
|
|
|
environment.systemPackages = [ pkgs.gnome3.gpaste ];
|
|
|
|
services.dbus.packages = [ pkgs.gnome3.gpaste ];
|
|
|
|
systemd.packages = [ pkgs.gnome3.gpaste ];
|
2020-09-01 20:21:09 +00:00
|
|
|
# gnome-control-center crashes in Keyboard Shortcuts pane without the GSettings schemas.
|
|
|
|
services.xserver.desktopManager.gnome3.sessionPath = [ pkgs.gnome3.gpaste ];
|
2017-09-02 14:54:03 +00:00
|
|
|
};
|
|
|
|
}
|