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!
Closes #1062
This is my first attempt at anything
launchd
related so bear with me. I used thepostgres
implementation as an example for this one combined with nixos module.Details:
launchd.agent
so the user option does nothing.systemd-run
to run the command, I don't think there is an equivalent forlaunchd
so I omitted that step.dbpath
I pass it as an option to the exec command instead of adding it into themongodb.conf
file because the file cannot handle~
in paths.nixfmt
I wasn't sure what the standard was here, if I need to make any changes please let me know!