News for hackers. Stuff that matters.
Re:Nix Survival Mode: macOS upgrades won't break Nix anymore by Cu3PO42 on Wednesday October 25, 2023 @02:13PM (#38016168)
Right! It's great to see that tackled for potentially all Nix installations! I have a workaround for that particular issue in my nix-darwin and Home-Manager configurations, but I've always disliked that I needed one in the first place.

While we're speaking of things I need workarounds for: having my login shell be Nix-installed currently has a race condition on systems with FileVault. I have, for example, iTerm2 configured to resume on reboot and it will start before the Nix partition is mounted, thus complaining that it cannot exec my shell. My workaround entails placing a thin wrapper on the main partition that simply waits for /nix to be mounted and then `exec`ing the right shell binary depending on the invoking user.

I should probably open an issue about this, but I'm not sure it can be solved at all while `/nix` needs to be on a seperate volume.

Re:Nix Survival Mode: macOS upgrades won't break Nix anymore by grhmc on Wednesday October 25, 2023 @02:16PM (#38016204)
Hmmm... would you mind opening an issue over here[1]? We have seen some related issues that might dovetail nicely.

1. https://github.com/determinateSystems/nix-installer

Re:Nix Survival Mode: macOS upgrades won't break Nix anymore by Cu3PO42 on Wednesday October 25, 2023 @02:27PM (#38016373)
I will do tomorrow! In the meantime, on the offchance anyone stumbles across this who has the same problem, my workaround is available here [0]. (Also exported as `darwinModules.chsh` from my Flake)

[0] https://github.com/Cu3PO42/gleaming-glacier/blob/master/modu...

Re:Nix Survival Mode: macOS upgrades won't break Nix anymore by grhmc on Wednesday October 25, 2023 @02:35PM (#38016493)
Ah fabulous, thanks! I'll make a note internally. It'd still be great if you could open an issue.
Re:Nix Survival Mode: macOS upgrades won't break Nix anymore by Cu3PO42 on Wednesday October 25, 2023 @02:42PM (#38016593)
I absolutely will! It’ s just … 8.40PM in this part of the world and I want to take the time to write a proper bug report and dig up my prior research on the issue.