Fixed initial databases if not enabled.

This commit is contained in:
Kevin Baensch 2019-08-04 04:49:22 +02:00
parent d9ecea0a17
commit 61f88e73ef

View file

@ -14,7 +14,7 @@ let
create user if not exists ${cfg.user}@'localhost' identified by ${password}; create user if not exists ${cfg.user}@'localhost' identified by ${password};
grant all privileges on ${cfg.name}.* to ${cfg.user}@'localhost' identified by ${password}; grant all privileges on ${cfg.name}.* to ${cfg.user}@'localhost' identified by ${password};
''; '';
} else {}; } else { name = ""; };
in mkIf (elem "mariaDB" config.machine.services) { in mkIf (elem "mariaDB" config.machine.services) {
services.mysql = { services.mysql = {
enable = true; enable = true;