2022-05-23 15:59:07 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
services.mysql = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.mariadb;
|
2022-05-31 20:41:21 +02:00
|
|
|
settings = {
|
|
|
|
mysqld = {
|
|
|
|
bind-address = "172.17.0.1";
|
|
|
|
};
|
|
|
|
};
|
2022-05-23 15:59:07 +02:00
|
|
|
};
|
2022-05-31 23:32:45 +02:00
|
|
|
networking.firewall.extraCommands = "iptables -A INPUT -p tcp --destination-port 3306 -s 172.16.0.0/12 -j ACCEPT";
|
2022-05-23 15:59:07 +02:00
|
|
|
}
|