1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-18 00:59:44 +01:00
home-manager/modules/programs/pidgin.nix

35 lines
788 B
Nix
Raw Normal View History

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 = {
enable = mkEnableOption (lib.mdDoc "Pidgin messaging client");
2018-02-17 09:39:31 +01:00
package = mkOption {
type = types.package;
default = pkgs.pidgin;
defaultText = literalExpression "pkgs.pidgin";
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 = [ ];
example = literalExpression "[ pkgs.pidgin-otr pkgs.pidgin-osd ]";
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; }) ];
};
}