mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
0722e88665
Not needed since f63d94eba3
35 lines
697 B
Nix
35 lines
697 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 ];
|
|
};
|
|
}
|