nixos/modules/mariadb/default.nix

14 lines
250 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
};
networking.firewall.interfaces."docker0".allowedTCPPorts = [ 3306 ];
2022-05-23 15:59:07 +02:00
}