Skip to content

Commit

Permalink
added package attribute to ejabberd.nix module
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmackenzie committed Dec 16, 2014
1 parent b6c9d16 commit ad694e4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion nixos/modules/services/networking/ejabberd.nix
Expand Up @@ -21,6 +21,14 @@ in
description = "Whether to enable ejabberd server";
};

package = mkOption {
default = pkgs.ejabberd;
type = types.package;
description = "
Ejabberd package to use.
";
}

spoolDir = mkOption {
default = "/var/lib/ejabberd";
description = "Location of the spooldir of ejabberd";
Expand Down Expand Up @@ -69,7 +77,7 @@ in
preStart =
''
PATH="$PATH:${pkgs.ejabberd}/sbin:${pkgs.ejabberd}/bin:${pkgs.coreutils}/bin:${pkgs.bash}/bin:${pkgs.gnused}/bin";
# Initialise state data
mkdir -p ${cfg.logsDir}
Expand Down

0 comments on commit ad694e4

Please sign in to comment.