Actually use services.mysql.port

Fixes #1315
This commit is contained in:
Shea Levy 2014-04-30 10:21:29 -04:00
parent 05decd49ff
commit 26d03000c2

View File

@ -21,6 +21,7 @@ let
myCnf = pkgs.writeText "my.cnf"
''
[mysqld]
port = ${toString cfg.port}
${optionalString (cfg.replication.role == "master" || cfg.replication.role == "slave") "log-bin=mysql-bin"}
${optionalString (cfg.replication.role == "master" || cfg.replication.role == "slave") "server-id = ${toString cfg.replication.serverId}"}
${optionalString (cfg.replication.role == "slave" && !is55)