2018-02-17 08:39:31 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.programs.pidgin;
|
|
|
|
|
2020-02-01 23:39:17 +00:00
|
|
|
in {
|
2018-02-17 08:39:31 +00:00
|
|
|
meta.maintainers = [ maintainers.rycee ];
|
|
|
|
|
|
|
|
options = {
|
|
|
|
programs.pidgin = {
|
|
|
|
enable = mkEnableOption "Pidgin messaging client";
|
|
|
|
|
|
|
|
package = mkOption {
|
|
|
|
type = types.package;
|
|
|
|
default = pkgs.pidgin;
|
2019-08-27 22:12:28 +00:00
|
|
|
defaultText = literalExample "pkgs.pidgin";
|
2018-02-17 08:39:31 +00:00
|
|
|
description = "The Pidgin package to use.";
|
|
|
|
};
|
|
|
|
|
|
|
|
plugins = mkOption {
|
2020-02-01 23:39:17 +00:00
|
|
|
default = [ ];
|
2018-02-17 08:39:31 +00:00
|
|
|
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; }) ];
|
|
|
|
};
|
|
|
|
}
|