-
Notifications
You must be signed in to change notification settings - Fork 57
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
broken installation on darwin #449
Comments
I have a working nix install again so I'll post my steps for anyone else somehow in this situation:
|
I think the writable file warning may be a separate bug (Oh dear though, I will get on that one). I have not seen the error you faced either. Could you let me know which version of macOS this is? In your workaround steps you discuss using a Nix 2.13 version, does the 2.15 release not work? |
My host is Yeah, so there must be something on my host that's still present after the official uninstall steps, that is tripping up the official current installer (nix-2.15.0). I took a guess and tried nix-2.13.0 and was able to install. Aside: I then set |
The good news is running I filed #451 which should fix one of the issues you found. I'm gonna take a bit more of a look at Nix darwin and see if I can reproduce. |
I'll be glad to test any fixes. I enjoy the nix-installer UX much better in general :) |
On one of our ephemeral macs I tried following the flakes guide here: https://github.com/LnL7/nix-darwin#flakes-experimental It seems to have worked ok:
It may be what you suspect: Something left over. Hmm... |
another very confusing data point on the nixos.org installer: on a brand new |
That's good news at least! :) |
@Hoverbear was the fix already released? I installed nix last Saturday and still got this issue. Also is there any way to get it resolved without going through the process of uninstalling and installing again? |
@takeda there are a few issues mentioned in this thread and I can't be sure which one you are referring to. So I'll list them:
I haven't been able to reproduce this and am not sure what's happening here. In #449 (comment) I played around and it seemed to work out okay.
#451 fixes this but hasn't been released.
I am not sure this was a bug or an ephemeral issue the user experienced. (I'd like to know if it was actually a bug) We haven't cut a release in a couple weeks, but likely will quite soon as we've updated our planners to use 2.15 and some new features. If the issue is fixed, then it's likely to require an uninstall and reinstall. :( |
is there any more triage steps you'd like me to try? I think showing the |
#451 fixes the |
You can try a build off the main branch:
(Normal user beware, highly unstable code warnings apply) |
@Hoverbear yes, I was referring to the issue addressed in #451, thanks. I ended up reinstalling with the original nix installer as some changes made here (primarily removing channels) seem to not play too well with nix-darwin. |
We've tested using the Flakes method and it seems to work okay: https://github.com/LnL7/nix-darwin#flakes-experimental Using the non-flakes method sadly does not work, that's right. If you encounter issues while using the flakes method, please let me know in a new issue. |
I will try it out again when a new version is released. |
BTW: there's an issue on OS X: NixOS/nix#7273 this is unrelated to this installer since it also happens when nix is installed with the official installer and |
I found this issue trying to solve the |
Thanks for digging into this more! Maybe we can teach |
In #528 we noticed if you remove nix without removing nix-darwin first, you can encounter some quite strange errors which look similar to these. We have partially mitigated this by warning you if we detect |
I think the issues found here are resolved, if they're not, feel free to reopen! |
I'm having some issues with nix today (mainly trying to weed out the possibility that my new nix-darwin + home-manager flake is still using previous configuration from standalone home-manager usage, and prior to that nix-darwin + home-manager flakes)
So I decided to purge it as well as I could from my aarch64-darwin system. Following this thread for all the ideas where it could have modified the disk (as well as
nix-installer uninstall
), I am fairly sure I've covered everything.I reboot, then use the zero-to-nix copy/paste command to install nix. Everything looks good. I go to build my nix-darwin system flake:
Never seen that error before! This same flake could build fine previous to purging nix.
Another symptom that something has gone really wrong:
(Repeat purging, rebooting)
Lastly I followed the official installation command on nixos.org, and the
nix store optimise
command now looks normal. However some part of the flake build is breaking on:and that url is a 404 when I try with curl. I don't think that problem is related, but overall, the official nix installer seems to put my system in a better state to use nix.
The text was updated successfully, but these errors were encountered: