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

ci: set NIX_PATH after installing Nix #707

Merged
merged 1 commit into from
Feb 28, 2023
Merged

Conversation

gcurtis
Copy link
Collaborator

@gcurtis gcurtis commented Feb 28, 2023

Summary

For some reason Nix stopped being able to find nixpkgs by default after a fresh install. Explicitly setting NIX_PATH seems to fix it.

How was it tested?

CI

For some reason Nix stopped being able to find nixpkgs by default after
a fresh install. Explicitly setting `NIX_PATH` seems to fix it.
Copy link
Contributor

@mikeland73 mikeland73 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this affect end users in any way? I can't seem to repro locally

@gcurtis
Copy link
Collaborator Author

gcurtis commented Feb 28, 2023

@mikeland86 I'm not sure. I could only reproduce it by doing a multi-user install (as not root) on a fresh Ubuntu image without any XDG env vars set. Maybe it only affects Linux?

@gcurtis gcurtis merged commit e6fcf5d into main Feb 28, 2023
@gcurtis gcurtis deleted the gcurtis/nix-install-ci branch February 28, 2023 22:02
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