nixos/modules/mariadb/default.nix

14 lines
296 B
Nix
Raw Normal View History

2022-05-23 15:59:07 +02:00
{ pkgs, ... }:
{
services.mysql = {
enable = true;
package = pkgs.mariadb;
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
}