{ 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; | |
} |