With these modifications, a user can configure a tomcat instance with web applications and web services by writing a service, such as:
...
services = {
  tomcat = {
    enable = true;
    webapps = [ mypkgs.HelloWorldWebApplication ];
    axis2 = {
      enable = true;
      services = [ mypkgs.HelloService mypkgs.HelloWorldService ];
    };
  };
};
svn path=/nixos/trunk/; revision=16619
		
	
*** NixOS *** NixOS is a Linux distribution based on the purely functional package management system Nix. More information can be found at http://nixos.org/nixos and in the manual in doc/manual.
Description
				
					Languages
				
				
								
								
									Nix
								
								96.3%
							
						
							
								
								
									Shell
								
								1.8%
							
						
							
								
								
									Python
								
								0.7%
							
						
							
								
								
									Perl
								
								0.4%
							
						
							
								
								
									C
								
								0.3%
							
						
							
								
								
									Other
								
								0.1%