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