From f7c02f867005c4731af51b94ab2b1a64a040e8cf Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Sat, 7 May 2016 14:31:16 +0300 Subject: [PATCH] ejabberd service: add image thumbnailing support --- nixos/modules/services/networking/ejabberd.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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";