Open will-lol opened 3 months ago
My preference is the latter, if you could make a PR that changes launchd.daemons
to automatically use wait4path
that would be appreciated.
In the same PR, you could probably drop all explicit/manual usage of wait4path
in nix-darwin
Sounds good to me! I’ll tackle that next weekend.
Would also address https://github.com/LnL7/nix-darwin/issues/774 and https://github.com/LnL7/nix-darwin/issues/563
(and possibly other issues as well)
The nix-daemon launchd daemon is configured to use the
/bin/wait4path
utility to ensure the nix store has been mounted before it runs its nix derivation.I recently ran into an issue with the yabai scripting addition daemon where the daemon would attempt to access a script (located in the nix store) before the store had been mounted. I'd imagine that the daemon works sometimes and for some people, but I reckon we should fix this.
I added the following to my darwin configuration to fix this issue:
I think that we should either:
yabai-sa
daemon to work like the nix-daemon one (and my override)launchd.daemons
module so that thescript
attribute works reliably (by waiting for the script to be in the nix store in some fashion).I'd like to hear all of your thoughts. I'm happy to write a PR for this also, but thought some discussion would be good.