Override the configuration file used by MySQL. By default, NixOS generates one automatically from services.mysql.settings.
Declarations
Type
path
Default
''
A configuration file automatically generated by NixOS.
''
Example
pkgs.writeText "my.cnf" ''
[mysqld]
datadir = /var/lib/mysql
bind-address = 127.0.0.1
port = 3336
!includedir /etc/mysql/conf.d/
'';