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

internal/nix: add DaemonVersion function #1959

Merged
merged 1 commit into from
Apr 8, 2024
Merged

Conversation

gcurtis
Copy link
Collaborator

@gcurtis gcurtis commented Apr 4, 2024

nix.DaemonVersion attempts to connect to the Nix daemon and returns its version string. Devbox will use the error from this function when configuring cache authentication:

  • If the nix daemon is running, we need to update ~root/.aws/config so that it can authenticate with the private devbox cache. This requires a sudo prompt.
  • If it's not running, then it's probably a single-user install without a daemon. We won't need sudo.

`nix.DaemonVersion` attempts to connect to the Nix daemon and returns
its version string. Devbox will use the error from this function when
configuring cache authentication:

- If the nix daemon is running, we need to update ~root/.aws/config so
  that it can authenticate with the private devbox cache. This requires
  a sudo prompt.
- If it's not running, then it's probably a single-user install without
  a daemon. We won't need sudo.
@gcurtis gcurtis merged commit ef831bb into main Apr 8, 2024
24 checks passed
@gcurtis gcurtis deleted the gcurtis/nix-daemon branch April 8, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants