2018-02-17 09:39:31 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.programs.pidgin;
|
|
|
|
|
2020-02-02 00:39:17 +01:00
|
|
|
in {
|
2018-02-17 09:39:31 +01:00
|
|
|
meta.maintainers = [ maintainers.rycee ];
|
|
|
|
|
|
|
|
options = {
|
|
|
|
programs.pidgin = {
|
2023-07-01 01:30:13 +02:00
|
|
|
enable = mkEnableOption (lib.mdDoc "Pidgin messaging client");
|
2018-02-17 09:39:31 +01:00
|
|
|
|
|
|
|
package = mkOption {
|
|
|
|
type = types.package;
|
|
|
|
default = pkgs.pidgin;
|
2021-10-09 11:14:08 +02:00
|
|
|
defaultText = literalExpression "pkgs.pidgin";
|
2023-07-01 01:30:13 +02:00
|
|
|
description = lib.mdDoc "The Pidgin package to use.";
|
2018-02-17 09:39:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
plugins = mkOption {
|
2020-02-02 00:39:17 +01:00
|
|
|
default = [ ];
|
2021-10-09 11:14:08 +02:00
|
|
|
example = literalExpression "[ pkgs.pidgin-otr pkgs.pidgin-osd ]";
|
2023-07-01 01:30:13 +02:00
|
|
|
description = lib.mdDoc "Plugins that should be available to Pidgin.";
|
2018-02-17 09:39:31 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home.packages = [ (cfg.package.override { inherit (cfg) plugins; }) ];
|
|
|
|
};
|
|
|
|
}
|