depot/third_party/home-manager/modules/programs/pidgin.nix
Default email cfcd52ff70 Project import generated by Copybara.
GitOrigin-RevId: 70c5b268e10025c70823767f4fb49e240b40151d
2021-11-05 00:42:44 +08:00

34 lines
756 B
Nix

{ 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 = literalExpression "pkgs.pidgin";
description = "The Pidgin package to use.";
};
plugins = mkOption {
default = [ ];
example = literalExpression "[ 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; }) ];
};
}