blob: 2eec6d0d8f243d25afd50cc7b5e38f5823b2371f [file] [log] [blame]
{ config, nixpkgs-mongodb, system, ... }: let
pkgs = import nixpkgs-mongodb {
config.allowUnfree = true;
inherit system;
};
in {
environment.systemPackages = [ pkgs.mongosh pkgs.mongodb-tools ];
services.mongodb.enable = true;
services.mongodb.enableAuth = true;
services.mongodb.bind_ip = "standard";
services.mongodb.initialRootPassword = "changeme";
services.mongodb.package = pkgs.mongodb-6_0;
}