@@ -16,11 +16,12 @@ let
1616 ''
1717 [settings]
1818 RunMode = Daemon
19− User = bitlbee
19+ User = bitlbee
2020 ConfigDir = ${cfg.configDir}
2121 DaemonInterface = ${cfg.interface}
2222 DaemonPort = ${toString cfg.portNumber}
2323 AuthMode = ${cfg.authMode}
24+ Plugindir = ${pkgs.bitlbee-plugins cfg.plugins}/lib/bitlbee
2425 ${lib.optionalString (cfg.hostName != "") "HostName = ${cfg.hostName}"}
2526 ${lib.optionalString (cfg.protocols != "") "Protocols = ${cfg.protocols}"}
2627 ${cfg.extraSettings}
@@ -72,7 +73,7 @@ in
7273 Open -- Accept connections from anyone, use NickServ for user authentication.
7374 Closed -- Require authorization (using the PASS command during login) before allowing the user to connect at all.
7475 Registered -- Only allow registered users to use this server; this disables the register- and the account command until the user identifies himself.
75− '';
76+ '';
7677 };
7778
7879 hostName = mkOption {
@@ -85,6 +86,15 @@ in
8586 '';
8687 };
8788
89+ plugins = mkOption {
90+ type = types.listOf types.package;
91+ default = [];
92+ example = literalExample "[ pkgs.bitlbee-facebook ]";
93+ description = ''
94+ The list of bitlbee plugins to install.
95+ '';
96+ };
97+
8898 configDir = mkOption {
8999 default = "/var/lib/bitlbee";
90100 type = types.path;
@@ -107,14 +117,14 @@ in
107117 default = "";
108118 description = ''
109119 Will be inserted in the Settings section of the config file.
110− '';
120+ '';
111121 };
112122
113123 extraDefaults = mkOption {
114124 default = "";
115125 description = ''
116126 Will be inserted in the Default section of the config file.
117− '';
127+ '';
118128 };
119129
120130 };
@@ -138,7 +148,7 @@ in
138148 gid = config.ids.gids.bitlbee;
139149 };
140150
141− systemd.services.bitlbee =
151+ systemd.services.bitlbee =
142152 { description = "BitlBee IRC to other chat networks gateway";
143153 after = [ "network.target" ];
144154 wantedBy = [ "multi-user.target" ];