02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
36 lines
876 B
Nix
36 lines
876 B
Nix
# 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 = lib.mdDoc ''
|
|
Whether to enable GPaste, a clipboard manager.
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
|
|
###### implementation
|
|
config = mkIf config.programs.gpaste.enable {
|
|
environment.systemPackages = [ pkgs.gnome.gpaste ];
|
|
services.dbus.packages = [ pkgs.gnome.gpaste ];
|
|
systemd.packages = [ pkgs.gnome.gpaste ];
|
|
# gnome-control-center crashes in Keyboard Shortcuts pane without the GSettings schemas.
|
|
services.xserver.desktopManager.gnome.sessionPath = [ pkgs.gnome.gpaste ];
|
|
};
|
|
}
|