Added tomcat service to NixOS

svn path=/nixos/trunk/; revision=10402
This commit is contained in:
Sander van der Burg 2008-01-30 11:00:00 +00:00
parent b8cc335fbb
commit b3ff0f8a59
2 changed files with 23 additions and 0 deletions

View File

@ -1035,6 +1035,23 @@
};
};
tomcat = {
enable = mkOption {
default = false;
description = "Whether to enable Apache Tomcat";
};
baseDir = mkOption {
default = "/var/tomcat";
description = "Location where Tomcat stores configuration files, webapplications and logfiles";
};
user = mkOption {
default = "nobody";
description = "User account under which Apache Tomcat runs.";
};
};
httpd = {
enable = mkOption {

View File

@ -188,6 +188,12 @@ let
inherit config pkgs;
})
# Apache Tomcat service
++ optional config.services.tomcat.enable
(import ../upstart-jobs/tomcat.nix {
inherit config pkgs;
})
# Samba service.
++ optional config.services.samba.enable
(import ../upstart-jobs/samba.nix {