diff options
| author | Pierre-Antoine Rouby <contact@parouby.fr> | 2018-05-10 16:37:58 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2018-05-11 00:15:59 +0200 |
| commit | 36d619e85d29d1fb2e4a36406c8bc6f999484f07 (patch) | |
| tree | 599afeea84eceb8d2046bf57b88d2f6547e71513 /gnu/services | |
| parent | b87fc9ab9d619e83947c5a281b682338df136fc6 (diff) | |
services: bitlbee: Add plugins.
* doc/guix.texi (Bitlbee Service): Add plugins.
* gnu/services/messaging.scm (<bitlbee-configuration>): Add plugins argument.
(bitlbee-shepherd-service): Update config file.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/services')
| -rw-r--r-- | gnu/services/messaging.scm | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gnu/services/messaging.scm b/gnu/services/messaging.scm index 273ba2cc14d..4b7e724a78b 100644 --- a/gnu/services/messaging.scm +++ b/gnu/services/messaging.scm | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | ;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org> | 2 | ;;; Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org> |
| 3 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> | 3 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> |
| 4 | ;;; Copyright © 2015, 2017, 2018 Ludovic Courtès <ludo@gnu.org> | 4 | ;;; Copyright © 2015, 2017, 2018 Ludovic Courtès <ludo@gnu.org> |
| 5 | ;;; Copyright © 2018 Pierre-Antoine Rouby <contact@parouby.fr> | ||
| 5 | ;;; | 6 | ;;; |
| 6 | ;;; This file is part of GNU Guix. | 7 | ;;; This file is part of GNU Guix. |
| 7 | ;;; | 8 | ;;; |
| @@ -790,20 +791,24 @@ string, you could instantiate a prosody service like this: | |||
| 790 | (default "127.0.0.1")) | 791 | (default "127.0.0.1")) |
| 791 | (port bitlbee-configuration-port | 792 | (port bitlbee-configuration-port |
| 792 | (default 6667)) | 793 | (default 6667)) |
| 794 | (plugins bitlbee-plugins | ||
| 795 | (default '())) | ||
| 793 | (extra-settings bitlbee-configuration-extra-settings | 796 | (extra-settings bitlbee-configuration-extra-settings |
| 794 | (default ""))) | 797 | (default ""))) |
| 795 | 798 | ||
| 796 | (define bitlbee-shepherd-service | 799 | (define bitlbee-shepherd-service |
| 797 | (match-lambda | 800 | (match-lambda |
| 798 | (($ <bitlbee-configuration> bitlbee interface port extra-settings) | 801 | (($ <bitlbee-configuration> bitlbee interface port |
| 799 | (let ((conf (plain-file "bitlbee.conf" | 802 | plugins extra-settings) |
| 800 | (string-append " | 803 | (let ((conf (mixed-text-file "bitlbee.conf" |
| 804 | " | ||
| 801 | [settings] | 805 | [settings] |
| 802 | User = bitlbee | 806 | User = bitlbee |
| 803 | ConfigDir = /var/lib/bitlbee | 807 | ConfigDir = /var/lib/bitlbee |
| 804 | DaemonInterface = " interface " | 808 | DaemonInterface = " interface " |
| 805 | DaemonPort = " (number->string port) " | 809 | DaemonPort = " (number->string port) " |
| 806 | " extra-settings)))) | 810 | PluginDir = " (directory-union "bitlbee-plugins" plugins) "/lib/bitlbee |
| 811 | " extra-settings))) | ||
| 807 | 812 | ||
| 808 | (with-imported-modules (source-module-closure | 813 | (with-imported-modules (source-module-closure |
| 809 | '((gnu build shepherd) | 814 | '((gnu build shepherd) |
