Skip to content

Commit 4bfea31

Browse files
committed
Fix compatibility issue with Apache on Nixpkgs 20.03 or newer
1 parent 92c4755 commit 4bfea31

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

nix/generate-containers.nix

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,14 @@
55
wrapper = {};
66
}
77
// lib.optionalAttrs (config.services.httpd.enable) { apache-webapplication = {
8-
documentRoot = config.services.httpd.documentRoot;
8+
documentRoot = config.services.httpd.documentRoot or config.services.httpd.virtualHosts.localhost.documentRoot;
99
}; }
1010
// lib.optionalAttrs (config.services.tomcat.axis2.enable) { axis2-webservice = {}; }
1111
// lib.optionalAttrs (config.services.ejabberd.enable) { ejabberd-dump = {
1212
ejabberdUser = config.services.ejabberd.user;
1313
}; }
1414
// lib.optionalAttrs (config.services.mysql.enable) { mysql-database = {
1515
mysqlPort = config.services.mysql.port;
16-
} // lib.optionalAttrs enableAuthentication {
17-
mysqlUsername = "root";
18-
mysqlPassword = builtins.readFile (config.services.mysql.rootPassword);
1916
};
2017
}
2118
// lib.optionalAttrs (config.services.postgresql.enable) { postgresql-database = {

version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.9
1+
0.9.1

0 commit comments

Comments
 (0)