mirror of
https://github.com/nix-community/home-manager
synced 2024-12-22 11:03:13 +00:00
37 lines
735 B
Nix
37 lines
735 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 = "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; }) ];
|
||
|
};
|
||
|
}
|