1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-25 07:58:31 +02:00

pidgin: add module

This commit is contained in:
Robert Helgesson 2018-02-17 09:39:31 +01:00
parent 5c783e1a63
commit 4745c7a00d
No known key found for this signature in database
GPG Key ID: C3DB11069E65DC86
3 changed files with 44 additions and 0 deletions

View File

@ -577,6 +577,13 @@ in
become deprecated and removed in the future.
'';
}
{
time = "2018-02-19T21:45:26+00:00";
message = ''
A new module is available: 'programs.pidgin'
'';
}
];
};
}

View File

@ -39,6 +39,7 @@ let
./programs/man.nix
./programs/mercurial.nix
./programs/neovim.nix
./programs/pidgin.nix
./programs/rofi.nix
./programs/ssh.nix
./programs/termite.nix

View File

@ -0,0 +1,36 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.programs.pidgin;
in
{
meta.maintainers = [ maintainers.rycee ];
options = {
programs.pidgin = {
enable = mkEnableOption "Pidgin messaging client";
package = mkOption {
type = types.package;
default = pkgs.pidgin;
defaultText = "pkgs.pidgin";
description = "The Pidgin package to use.";
};
plugins = mkOption {
default = [];
example = literalExample "[ pkgs.pidgin-otr pkgs.pidgin-osd ]";
description = "Plugins that should be available to Pidgin.";
};
};
};
config = mkIf cfg.enable {
home.packages = [ (cfg.package.override { inherit (cfg) plugins; }) ];
};
}