1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/nixos/modules/programs/gpaste.nix

35 lines
697 B
Nix
Raw Normal View History

2019-08-09 17:43:00 +01:00
# GPaste.
{ config, lib, pkgs, ... }:
2017-09-02 15:54:03 +01:00
with lib;
{
2019-08-09 17:43:00 +01:00
# Added 2019-08-09
imports = [
(mkRenamedOptionModule
[ "services" "gnome3" "gpaste" "enable" ]
[ "programs" "gpaste" "enable" ])
];
2017-09-02 15:54:03 +01:00
###### interface
options = {
2019-08-09 17:43:00 +01:00
programs.gpaste = {
2017-09-02 15:54:03 +01:00
enable = mkOption {
type = types.bool;
default = false;
description = ''
Whether to enable GPaste, a clipboard manager.
'';
};
};
};
###### implementation
2019-08-09 17:43:00 +01:00
config = mkIf config.programs.gpaste.enable {
environment.systemPackages = [ pkgs.gnome3.gpaste ];
services.dbus.packages = [ pkgs.gnome3.gpaste ];
systemd.packages = [ pkgs.gnome3.gpaste ];
2017-09-02 15:54:03 +01:00
};
}