2017-09-02 16:54:03 +02:00
|
|
|
# GPaste daemon.
|
2017-09-24 13:15:50 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2017-09-02 16:54:03 +02:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.gnome3.gpaste = {
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
Whether to enable GPaste, a clipboard manager.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.services.gnome3.gpaste.enable {
|
2017-09-24 13:15:50 +02:00
|
|
|
environment.systemPackages = [ pkgs.gnome3.gpaste ];
|
|
|
|
services.dbus.packages = [ pkgs.gnome3.gpaste ];
|
|
|
|
services.xserver.desktopManager.gnome3.sessionPath = [ pkgs.gnome3.gpaste ];
|
|
|
|
systemd.packages = [ pkgs.gnome3.gpaste ];
|
2017-09-02 16:54:03 +02:00
|
|
|
};
|
|
|
|
}
|