9 lines
204 B
Nix
9 lines
204 B
Nix
|
{ ... }:
|
||
|
{
|
||
|
services.postgresql = {
|
||
|
enable = true;
|
||
|
enableTCPIP = true;
|
||
|
};
|
||
|
networking.firewall.extraCommands = "iptables -A INPUT -p tcp --destination-port 3306 -s 172.16.0.0/12 -j ACCEPT";
|
||
|
}
|