mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
23f2529ffc
Not really a GNOME project.
30 lines
825 B
Nix
30 lines
825 B
Nix
# GPaste.
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
###### interface
|
|
options = {
|
|
programs.gpaste = {
|
|
enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
description = ''
|
|
Whether to enable GPaste, a clipboard manager.
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
|
|
###### implementation
|
|
config = lib.mkIf config.programs.gpaste.enable {
|
|
environment.systemPackages = [ pkgs.gpaste ];
|
|
services.dbus.packages = [ pkgs.gpaste ];
|
|
systemd.packages = [ pkgs.gpaste ];
|
|
# gnome-control-center crashes in Keyboard Shortcuts pane without the GSettings schemas.
|
|
services.xserver.desktopManager.gnome.sessionPath = [ pkgs.gpaste ];
|
|
# gpaste-reloaded applet doesn't work without the typelib
|
|
services.xserver.desktopManager.cinnamon.sessionPath = [ pkgs.gpaste ];
|
|
};
|
|
}
|