Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mongodb service #1065

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

obinmatt
Copy link

Closes #1062

This is my first attempt at anything launchd related so bear with me. I used the postgres implementation as an example for this one combined with nixos module.

Details:

  • I went with a launchd.agent so the user option does nothing.
  • For the auth, the nixos module uses systemd-run to run the command, I don't think there is an equivalent for launchd so I omitted that step.
  • For the dbpath I pass it as an option to the exec command instead of adding it into the mongodb.conf file because the file cannot handle ~ in paths.
  • I formatted the files using nixfmt.

If I need to make any changes please let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add mongodb service
1 participant