504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
38 lines
1,020 B
Nix
38 lines
1,020 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 ];
|
|
# gpaste-reloaded applet doesn't work without the typelib
|
|
services.xserver.desktopManager.cinnamon.sessionPath = [ pkgs.gnome.gpaste ];
|
|
};
|
|
}
|