-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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 definitions on OS X #21252
Comments
I've been working working on a project that tries some of the parts of nixos to darwin. At the moment it's a separate project because I'm not sure yet how to integrate it with the existing nixos modules, but there should be very little difference for the parts that overlap. Feedback and help are appreciated to make it easier to get started with it. |
@copumpkin do you have any thoughts on this? |
ping @periklis, he had some thoughts on this, too. |
Way months back, when i was doing my first baby steps with nixpkgs, i tried to create a PR for a new output type called "plist" to adress this issue. My assumptions were:
However, i failed to produce the PR at that time, because of lack of knowledge of the internals of stdenv.darwin. I got lost in the recursion of In summary, this just an abstraction of the approach currently found in packages like xquatz, that produce plist files in the derivation's attrset and reference to the contents during the phases. |
I might be bias, but I'm not sure how useful a plist output is in practice since there's no way to customise it. Using the module system makes more sense to me and has some nice advantages like type checking and nice descriptions for all of the launchd options. |
@LnL7 Sure you are right, but modules are the heavy-lifting way. I could not foresee that nix-darwin would be possible at that moment. However, i having a plist attribute which anybody can override would do the same all the launchd options, but this is the dirty way. |
Are there any updates to this issue, please? |
Going to close as it has been a long time and I'm not sure if this is relevant anymore. |
There are no launchd services for servers such as postgres on macOS, you have to manually start/stop postgres yourself. While it is trivial to create a script/alias to do this or even write the service definition yourself, it would be nice if nix could do it for you.
#5246 was opened to address this but it was abandoned.
The text was updated successfully, but these errors were encountered: