fork/home-manager
git clone https://git.julia.blue/fork/home-manager
4fa1ba72
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5let 6 7cfg = config . programs . pidgin ; 8 9in { 10meta . maintainers = [ maintainers . rycee ]; 11 12options = { 13programs . pidgin = { 14enable = mkEnableOption "Pidgin messaging client" ; 15 16package = mkOption { 17type = types . package ; 18default = pkgs . pidgin ; 19defaultText = literalExpression "pkgs.pidgin" ; 20description = "The Pidgin package to use." ; 21}; 22 23plugins = mkOption { 24default = [ ]; 25example = literalExpression "[ pkgs.pidgin-otr pkgs.pidgin-osd ]" ; 26description = "Plugins that should be available to Pidgin." ; 27}; 28}; 29}; 30 31config = mkIf cfg . enable { 32home . packages = [ ( cfg . package . override { inherit ( cfg ) plugins ; }) ]; 33}; 34}