diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-09-11 22:32:16 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-09-11 22:32:16 +0200 |
commit | a44de69d06e382768c31a3817e9f3ab7f7cc9e3d (patch) | |
tree | 9eb6b573eb0136205b468b16f594cd8cc3e331f5 /nixos/modules | |
parent | 9a6484b255747b27665f9cd08d2435871a0455ed (diff) | |
download | nixlib-a44de69d06e382768c31a3817e9f3ab7f7cc9e3d.tar nixlib-a44de69d06e382768c31a3817e9f3ab7f7cc9e3d.tar.gz nixlib-a44de69d06e382768c31a3817e9f3ab7f7cc9e3d.tar.bz2 nixlib-a44de69d06e382768c31a3817e9f3ab7f7cc9e3d.tar.lz nixlib-a44de69d06e382768c31a3817e9f3ab7f7cc9e3d.tar.xz nixlib-a44de69d06e382768c31a3817e9f3ab7f7cc9e3d.tar.zst nixlib-a44de69d06e382768c31a3817e9f3ab7f7cc9e3d.zip |
nixos/tomcat: make package version configurable
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/web-servers/tomcat.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/nixos/modules/services/web-servers/tomcat.nix b/nixos/modules/services/web-servers/tomcat.nix index 2af249a8e961..99460a48835d 100644 --- a/nixos/modules/services/web-servers/tomcat.nix +++ b/nixos/modules/services/web-servers/tomcat.nix @@ -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"; |