nixpkgs/nixos/modules/programs/gpaste.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
825 B
Nix
Raw Normal View History

2019-08-09 12:43:00 -04:00
# GPaste.
{ config, lib, pkgs, ... }:
2017-09-02 10:54:03 -04:00
{
2019-08-09 12:43:00 -04:00
2017-09-02 10:54:03 -04:00
###### interface
options = {
2019-08-09 12:43:00 -04:00
programs.gpaste = {
enable = lib.mkOption {
type = lib.types.bool;
2017-09-02 10:54:03 -04:00
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 ];
2017-09-02 10:54:03 -04:00
};
}