summary refs log tree commit diff
path: root/nixos/modules/services/web-servers/tomcat.nix
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2014-09-11 22:32:16 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2014-09-11 22:32:16 +0200
commita44de69d06e382768c31a3817e9f3ab7f7cc9e3d (patch)
tree9eb6b573eb0136205b468b16f594cd8cc3e331f5 /nixos/modules/services/web-servers/tomcat.nix
parent9a6484b255747b27665f9cd08d2435871a0455ed (diff)
downloadnixpkgs-a44de69d06e382768c31a3817e9f3ab7f7cc9e3d.tar
nixpkgs-a44de69d06e382768c31a3817e9f3ab7f7cc9e3d.tar.gz
nixpkgs-a44de69d06e382768c31a3817e9f3ab7f7cc9e3d.tar.bz2
nixpkgs-a44de69d06e382768c31a3817e9f3ab7f7cc9e3d.tar.lz
nixpkgs-a44de69d06e382768c31a3817e9f3ab7f7cc9e3d.tar.xz
nixpkgs-a44de69d06e382768c31a3817e9f3ab7f7cc9e3d.tar.zst
nixpkgs-a44de69d06e382768c31a3817e9f3ab7f7cc9e3d.zip
nixos/tomcat: make package version configurable
Diffstat (limited to 'nixos/modules/services/web-servers/tomcat.nix')
-rw-r--r--nixos/modules/services/web-servers/tomcat.nix11
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 2af249a8e96..99460a48835 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";