change mongo bind IP
Change-Id: I166f8ecffa5357993c98cbb68cdc56ba521247ff
Reviewed-on: https://git.clicks.codes/c/Clicks/NixFiles/+/44
Reviewed-by: Skyler Grey <minion@clicks.codes>
Tested-by: Samuel Shuert <coded@clicks.codes>
diff --git a/flake.nix b/flake.nix
index 2067d50..a497863 100644
--- a/flake.nix
+++ b/flake.nix
@@ -50,7 +50,7 @@
{
system.stateVersion = "22.11";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
- nix.settings.trusted-users = [ "minion" ];
+ nix.settings.trusted-users = [ "minion" "coded" ];
time.timeZone = "Etc/UTC";
users.mutableUsers = false;
diff --git a/helpers b/helpers
index 8044f5e..9b2bb0d 160000
--- a/helpers
+++ b/helpers
@@ -1 +1 @@
-Subproject commit 8044f5eb5d7dec0b3d194f2fafe634fb0c60d8c2
+Subproject commit 9b2bb0dd0662e26ea5c9b7bcd2c767b50abc4525
diff --git a/modules/common/mongodb.nix b/modules/common/mongodb.nix
index 0c4ebc5..2eec6d0 100644
--- a/modules/common/mongodb.nix
+++ b/modules/common/mongodb.nix
@@ -7,10 +7,7 @@
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.bind_ip = "standard";
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";
}