diff options
author | Thomas Strobel <ts468@cam.ac.uk> | 2016-01-17 19:34:55 +0100 |
---|---|---|
committer | Thomas Strobel <ts468@cam.ac.uk> | 2016-01-17 19:41:23 +0100 |
commit | a04a7272aa38ada45e694281071b720d4abbd0df (patch) | |
tree | 3cd20fafec2de8e3b5ec558461a779898b4e50ee /nixos/modules/services/web-servers/tomcat.nix | |
parent | ae5ef2b00955a8b8cbcc93a6682a8275c4d5e52c (diff) | |
download | nixlib-a04a7272aa38ada45e694281071b720d4abbd0df.tar nixlib-a04a7272aa38ada45e694281071b720d4abbd0df.tar.gz nixlib-a04a7272aa38ada45e694281071b720d4abbd0df.tar.bz2 nixlib-a04a7272aa38ada45e694281071b720d4abbd0df.tar.lz nixlib-a04a7272aa38ada45e694281071b720d4abbd0df.tar.xz nixlib-a04a7272aa38ada45e694281071b720d4abbd0df.tar.zst nixlib-a04a7272aa38ada45e694281071b720d4abbd0df.zip |
Add missing 'type', 'defaultText' and 'literalExample' in module definitions
- add missing types in module definitions - add missing 'defaultText' in module definitions - wrap example with 'literalExample' where necessary in module definitions
Diffstat (limited to 'nixos/modules/services/web-servers/tomcat.nix')
-rw-r--r-- | nixos/modules/services/web-servers/tomcat.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/services/web-servers/tomcat.nix b/nixos/modules/services/web-servers/tomcat.nix index 6abd6dfb306b..c3be20b41e29 100644 --- a/nixos/modules/services/web-servers/tomcat.nix +++ b/nixos/modules/services/web-servers/tomcat.nix @@ -24,6 +24,7 @@ in package = mkOption { type = types.package; default = pkgs.tomcat7; + defaultText = "pkgs.tomcat7"; example = lib.literalExample "pkgs.tomcat8"; description = '' Which tomcat package to use. @@ -72,7 +73,9 @@ in }; webapps = mkOption { + type = types.listOf types.package; default = [ tomcat ]; + defaultText = "[ tomcat ]"; description = "List containing WAR files or directories with WAR files which are web applications to be deployed on Tomcat"; }; @@ -87,7 +90,9 @@ in }; jdk = mkOption { + type = types.package; default = pkgs.jdk; + defaultText = "pkgs.jdk"; description = "Which JDK to use."; }; |