blob: c6d8fe9b5dd690e97c3ecbb46baf201b2673638f [file] [log] [blame]
{ config, pkgs, ... }: {
environment.systemPackages = [ pkgs.mongosh pkgs.mongodb-tools ];
services.mongodb.enable = true;
services.mongodb.enableAuth = true;
services.mongodb.bind_ip = "0.0.0.0";
services.mongodb.initialRootPassword = "changeme";
services.mongodb.package = pkgs.mongodb-6_0;
networking.firewall.extraCommands = "iptables -A INPUT -s 192.168.0.4 -p tcp --dport 27017 -j ACCEPT";
}