about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-05-07 14:31:16 +0300
committerNikolay Amiantov <ab@fmap.me>2016-05-07 14:31:16 +0300
commitf7c02f867005c4731af51b94ab2b1a64a040e8cf (patch)
tree62138b1f313a18acda595d98e47c87f4044859cc /nixos
parentbbde5400cf3a458a931a2932ed4e724dca77cff4 (diff)
downloadnixlib-f7c02f867005c4731af51b94ab2b1a64a040e8cf.tar
nixlib-f7c02f867005c4731af51b94ab2b1a64a040e8cf.tar.gz
nixlib-f7c02f867005c4731af51b94ab2b1a64a040e8cf.tar.bz2
nixlib-f7c02f867005c4731af51b94ab2b1a64a040e8cf.tar.lz
nixlib-f7c02f867005c4731af51b94ab2b1a64a040e8cf.tar.xz
nixlib-f7c02f867005c4731af51b94ab2b1a64a040e8cf.tar.zst
nixlib-f7c02f867005c4731af51b94ab2b1a64a040e8cf.zip
ejabberd service: add image thumbnailing support
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/ejabberd.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/ejabberd.nix b/nixos/modules/services/networking/ejabberd.nix
index 8ffce23a4b10..9868f303ab2b 100644
--- a/nixos/modules/services/networking/ejabberd.nix
+++ b/nixos/modules/services/networking/ejabberd.nix
@@ -78,6 +78,12 @@ in {
         description = "Configuration dumps that should be loaded on the first startup";
         example = literalExample "[ ./myejabberd.dump ]";
       };
+
+      imagemagick = mkOption {
+        type = types.bool;
+        default = false;
+        description = "Add ImageMagick to server's path; allows for image thumbnailing";
+      };
     };
 
   };
@@ -105,7 +111,7 @@ in {
       description = "ejabberd server";
       wantedBy = [ "multi-user.target" ];
       after = [ "network.target" ];
-      path = [ pkgs.findutils pkgs.coreutils ];
+      path = [ pkgs.findutils pkgs.coreutils ] ++ lib.optional cfg.imagemagick pkgs.imagemagick;
 
       serviceConfig = {
         Type = "forking";