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 #1063

Closed
wants to merge 4 commits into from

Conversation

obinmatt
Copy link

@obinmatt obinmatt commented Sep 8, 2024

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 I wasn't sure what the standard was here, if I need to make any changes please let me know!

@obinmatt obinmatt closed this Sep 10, 2024
@obinmatt obinmatt deleted the issue-1062-add-mongodb-service branch September 10, 2024 19:48
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