fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Robert HelgessonMerge branch 'literalExpression' [#2371]4fa1ba72

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