nixos/tomcat: make package version configurable
This commit is contained in:
parent
9a6484b255
commit
a44de69d06
@ -5,7 +5,7 @@ with lib;
|
|||||||
let
|
let
|
||||||
|
|
||||||
cfg = config.services.tomcat;
|
cfg = config.services.tomcat;
|
||||||
tomcat = pkgs.tomcat7;
|
tomcat = cfg.package;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -21,6 +21,15 @@ in
|
|||||||
description = "Whether to enable Apache Tomcat";
|
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 {
|
baseDir = mkOption {
|
||||||
default = "/var/tomcat";
|
default = "/var/tomcat";
|
||||||
description = "Location where Tomcat stores configuration files, webapplications and logfiles";
|
description = "Location where Tomcat stores configuration files, webapplications and logfiles";
|
||||||
|
Loading…
Reference in New Issue
Block a user