blob: 2eec6d0d8f243d25afd50cc7b5e38f5823b2371f [file] [log] [blame]
Samuel Shuertf68685d2023-10-28 20:07:56 -04001{ config, nixpkgs-mongodb, system, ... }: let
2 pkgs = import nixpkgs-mongodb {
3 config.allowUnfree = true;
4 inherit system;
5 };
6in {
Skyler Grey4f3e6062023-03-04 01:29:29 +00007 environment.systemPackages = [ pkgs.mongosh pkgs.mongodb-tools ];
Skyler Grey1e2187f2023-03-03 22:45:10 +00008 services.mongodb.enable = true;
9 services.mongodb.enableAuth = true;
Samuel Shuert32d3fb52023-11-22 16:25:10 -050010 services.mongodb.bind_ip = "standard";
Skyler Grey4f3e6062023-03-04 01:29:29 +000011 services.mongodb.initialRootPassword = "changeme";
Skyler Grey1e2187f2023-03-03 22:45:10 +000012 services.mongodb.package = pkgs.mongodb-6_0;
Skyler Grey1e2187f2023-03-03 22:45:10 +000013}