@cryptotaxi247 / infra / commits / 9eaf7efa

Added the root files

svn path=/configurations/trunk/tud/; revision=8242

Martin Bravenboer committed Mar 6, 2007 at 16:25 UTC 9eaf7efa3b4b3e1f3ae88f246a28668a83daa173
1 file changed +8 -1
main.nix
+8 -1
@@ -63,7 +63,7 @@ rec {
63
64 extraSubservices = {
65 enable = true;
66 - services = [distManagerService];
66 + services = [distManagerService rootFiles];
67 };
68 };
69 };
@@ -84,4 +84,11 @@ rec {
84 canonicalName = "http://" + webServer.hostName +
85 (if webServer.httpPort == 80 then "" else ":" + (toString webServer.httpPort));
86 };
87 +
88 + rootFiles = webServer : pkgs :
89 + import ../../../services/apache-httpd/subservices/serve-files {
90 + directory = ./webroot;
91 + urlPath = "/";
92 + inherit (pkgs) stdenv;
93 + };
94 }