MongoDB: Difference between revisions
Ichbinmatz (talk | contribs) m fix typo in the link displayname |
m `services.mongodb.package` does not accept strings. |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 7: | Line 7: | ||
... | ... | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{warning|The default <code>mongodb</code> package does not provide pre-compiled binaries, and the package will be compiled locally. The alternate package <code>mongodb-ce</code> does however. You can configure the mongodb service to use this package with the following:<syntaxhighlight lang="nix">services.mongodb.package = pkgs.mongodb-ce;</syntaxhighlight>}} | |||
== Configuration == | == Configuration == | ||
| Line 12: | Line 13: | ||
services.mongodb = { | services.mongodb = { | ||
enable = true; | enable = true; | ||
package = | package = pkgs.mongodb-7_0; | ||
enableAuth = true; | enableAuth = true; | ||
initialRootPasswordFile = /path/to/secure/passwordFile; | |||
bind_ip = "10.5.0.2"; | bind_ip = "10.5.0.2"; | ||
}; | }; | ||