From 26d03000c250d0286c31becdf773f78adacf49ac Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Wed, 30 Apr 2014 10:21:29 -0400 Subject: [PATCH] Actually use services.mysql.port Fixes #1315 --- nixos/modules/services/databases/mysql.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/databases/mysql.nix b/nixos/modules/services/databases/mysql.nix index 1ca45d90f891..b94a3fbf3de7 100644 --- a/nixos/modules/services/databases/mysql.nix +++ b/nixos/modules/services/databases/mysql.nix @@ -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)