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

Update restart Nix command for macOS to include -k flag #1081

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

dorranh
Copy link
Contributor

@dorranh dorranh commented Mar 28, 2024

This PR adds a recommendation to use the -k flag when invoking launchctl 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.

Added a recommendation to use the -k flag when invoking
launchctl kickstart to ensure that Nix is launched even
if the daemon is already running.
@dorranh dorranh changed the title Update restart Nix command for MacOS to include -k flag Update restart Nix command for macOS to include -k flag Mar 28, 2024
@domenkozar domenkozar merged commit a8093f9 into cachix:main Mar 29, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants