nixos/tomcat: make package version configurable

Changed files
+10 -1
nixos
modules
services
web-servers
+10 -1
nixos/modules/services/web-servers/tomcat.nix
···
let
cfg = config.services.tomcat;
-
tomcat = pkgs.tomcat7;
+
tomcat = cfg.package;
in
{
···
enable = mkOption {
default = false;
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 {