nixos/tomcat: make package version configurable

This commit is contained in:
Bjørn Forsman 2014-09-11 22:32:16 +02:00
parent 9a6484b255
commit a44de69d06

View File

@ -5,7 +5,7 @@ with lib;
let
cfg = config.services.tomcat;
tomcat = pkgs.tomcat7;
tomcat = cfg.package;
in
{
@ -21,6 +21,15 @@ in
description = "Whether to enable Apache Tomcat";
};
package = mkOption {
type = types.package;
default = pkgs.tomcat7;
example = lib.literalExample "pkgs.tomcat8";
description = ''
Which tomcat package to use.
'';
};
baseDir = mkOption {
default = "/var/tomcat";
description = "Location where Tomcat stores configuration files, webapplications and logfiles";