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

services / documentation issue? #994

Open
MarcWeber opened this issue Jul 3, 2024 · 3 comments
Open

services / documentation issue? #994

MarcWeber opened this issue Jul 3, 2024 · 3 comments

Comments

@MarcWeber
Copy link

I'm interested to port PHP/MySQL to OSX I had for nixos.

So it seems you can install systemd for darwin/osx:
https://formulae.brew.sh/formula/systemd but no idea whether it would handle mysql like services.

It would be nice if you could document how you imagine this to be done on OSX whether and how services might be supported.

@emilazy
Copy link
Collaborator

emilazy commented Jul 3, 2024

You can’t use systemd to manage services on macOS; you use launchd, which inspired systemd, instead. You can search the nix-darwin source for examples of how to define launchd daemons in Nix.

@MarcWeber
Copy link
Author

The channel's postgresql service eventually is missing -D trying master. A lot of services like mysql/postgresql/apache2 whatever share a lot with nixos especially the configuartion file constructions stuff. Is there any planned future or just duplicate code or use flakes ?

@MarcWeber
Copy link
Author

Ok, looks like I got postgresql finally working by removing internal/readonly, by setting dataDir to /Users/m/somtehnig and using superUser=my-user-name .. pg is up and running. But its a nice example that some 'documentation' might be helpful such as: "Hey, defualt user eg for pg is postgres, so make sure you create that user or change it to env "USER'

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

No branches or pull requests

2 participants