commit | c54eceaa7d72fb96dc0b99d99c64a13e9b96c100 | [log] [tgz] |
---|---|---|
author | Skyler Grey <skyler3665@gmail.com> | Fri Mar 03 23:19:46 2023 +0000 |
committer | Skyler Grey <skyler3665@gmail.com> | Fri Mar 03 23:19:46 2023 +0000 |
tree | da0e6f59cfc0800c7531096aad46209d94786d48 | |
parent | 1e2187f58c354323da9f90ee00c7f1feeef6770e [diff] [blame] |
Install mongosh, move services to modules
diff --git a/modules/mongodb.nix b/modules/mongodb.nix new file mode 100644 index 0000000..26570f1 --- /dev/null +++ b/modules/mongodb.nix
@@ -0,0 +1,7 @@ +{ config, pkgs, ... }: { + environment.systemPackages = [ pkgs.mongosh ]; + services.mongodb.enable = true; + services.mongodb.enableAuth = true; + services.mongodb.initialRootPassword = "fYhw&%6frpcL9zcJ5p^b^tquP0kyVE9hehoLY4lY2zUUzbIjEyDPhAIMe2M"; + services.mongodb.package = pkgs.mongodb-6_0; +}