blob: c6d8fe9b5dd690e97c3ecbb46baf201b2673638f [file] [log] [blame]
Skyler Grey1e2187f2023-03-03 22:45:10 +00001{ config, pkgs, ... }: {
Skyler Grey4f3e6062023-03-04 01:29:29 +00002 environment.systemPackages = [ pkgs.mongosh pkgs.mongodb-tools ];
Skyler Grey1e2187f2023-03-03 22:45:10 +00003 services.mongodb.enable = true;
4 services.mongodb.enableAuth = true;
Skyler Grey4f3e6062023-03-04 01:29:29 +00005 services.mongodb.bind_ip = "0.0.0.0";
6 services.mongodb.initialRootPassword = "changeme";
Skyler Grey1e2187f2023-03-03 22:45:10 +00007 services.mongodb.package = pkgs.mongodb-6_0;
Skyler Grey629d2bb2023-05-12 00:28:27 +00008
9 networking.firewall.extraCommands = "iptables -A INPUT -s 192.168.0.4 -p tcp --dport 27017 -j ACCEPT";
Skyler Grey1e2187f2023-03-03 22:45:10 +000010}