Update restart Nix command for macOS to include -k flag #1081
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a recommendation to use the
-k
flag when invokinglaunchctl kickstart
to ensure that the Nix daemon is launched even if it is already running.For context: while bootstrapping a new machine running MacOS today I ran into a small issue when setting up Nix + devenv. Specifically I installed Nix using the Determinate Systems installer then ran into an error when first running devenv since my user was not in the
trusted-users
list. When I used the suggested command I kept getting the same error since the Nix daemon had not actually been restarted which led me to try with the additional-k
flag. I'm fairly new to MacOS, but from what I can tell on the launchctl docs this additional flag is required to actually restart the service.