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
Add support for switching when no previous generation has existed #474
Add support for switching when no previous generation has existed #474
Conversation
Thanks for looking into this! I'll also try investigating a bit when possible. |
I believe this PR is ready, I did not remove the WIP as I haven't had a chance to retry since. Feel free to remove the WIP and merge if it looks good to you. |
@rycee I finally had some time to move forward with Darwin build and I verified that this works now! This PR is now ready for your review. EDIT: On second thought, I'm still finding issues with this so I'll work more on it and will let you know! |
This happens only when the user does not have a profile directory yet.
a6ecae2
to
81dae2f
Compare
Sorry for the very long delay. I finally had time to return to this problem and fund an alternative solution that I implemented instead. Hopefully it'll work OK for you. |
Using the `nix-env` command is far more robust. It also has the benefit that if the per-user `profiles` and `gcroots` directories do not exist then they will be created with the correct permissions. Because of the second point this commit also removes the `mkdir` step of the installation instructions. PR nix-community#1239 Closes nix-community#474, nix-community#948, nix-community#1091
Using the `nix-env` command is far more robust. It also has the benefit that if the per-user `profiles` and `gcroots` directories do not exist then they will be created with the correct permissions. Because of the second point this commit also removes the `mkdir` step of the installation instructions. PR #1239 Closes #474, #948, #1091 (cherry picked from commit 9ec9f00)
Using the `nix-env` command is far more robust. It also has the benefit that if the per-user `profiles` and `gcroots` directories do not exist then they will be created with the correct permissions. Because of the second point this commit also removes the `mkdir` step of the installation instructions. PR nix-community#1239 Closes nix-community#474, nix-community#948, nix-community#1091
This happens only when the user does not have a profile directory yet.