1# GPaste daemon.
2{ config, lib, pkgs, ... }:
3
4with lib;
5
6{
7 ###### interface
8 options = {
9 services.gnome3.gpaste = {
10 enable = mkOption {
11 type = types.bool;
12 default = false;
13 description = ''
14 Whether to enable GPaste, a clipboard manager.
15 '';
16 };
17 };
18 };
19
20 ###### implementation
21 config = mkIf config.services.gnome3.gpaste.enable {
22 environment.systemPackages = [ pkgs.gnome3.gpaste ];
23 services.dbus.packages = [ pkgs.gnome3.gpaste ];
24 services.xserver.desktopManager.gnome3.sessionPath = [ pkgs.gnome3.gpaste ];
25 systemd.packages = [ pkgs.gnome3.gpaste ];
26 };
27}