mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
3b68a757ff
GPaste ships keybindings for gnome-control-center. Those depend on GSettings schemas
but there is currently no mechanism for loading schemas other than using global ones
from $XDG_DATA_DIRS. Eventually, I want to add such mechanism but until then,
let's return the impure sessionPath option that was removed in
f63d94eba3
37 lines
871 B
Nix
37 lines
871 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 = ''
|
|
Whether to enable GPaste, a clipboard manager.
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
|
|
###### implementation
|
|
config = mkIf config.programs.gpaste.enable {
|
|
environment.systemPackages = [ pkgs.gnome3.gpaste ];
|
|
services.dbus.packages = [ pkgs.gnome3.gpaste ];
|
|
systemd.packages = [ pkgs.gnome3.gpaste ];
|
|
# gnome-control-center crashes in Keyboard Shortcuts pane without the GSettings schemas.
|
|
services.xserver.desktopManager.gnome3.sessionPath = [ pkgs.gnome3.gpaste ];
|
|
};
|
|
}
|