2.home-manager/modules/programs/pidgin/default.nix
Austin Horstman 4fca600cb1 treewide: implement auto importing for modules
Reduce maintenance burden and increase efficiency by automatically
importing modules following a specific convention.

Co-authored-by: awwpotato <awwpotato@voidq.com>
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-22 23:58:37 -05:00

30 lines
621 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.pidgin;
in
{
meta.maintainers = [ lib.maintainers.rycee ];
options = {
programs.pidgin = {
enable = lib.mkEnableOption "Pidgin messaging client";
package = lib.mkPackageOption pkgs "pidgin" { };
plugins = lib.mkOption {
default = [ ];
example = lib.literalExpression "[ pkgs.pidgin-otr pkgs.pidgin-osd ]";
description = "Plugins that should be available to Pidgin.";
};
};
};
config = lib.mkIf cfg.enable {
home.packages = [ (cfg.package.override { inherit (cfg) plugins; }) ];
};
}