3 ms·
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 con
by Cu3PO42 3y ago
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.
- grhmc 3y agoHmmm... 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 https://github.com/determinateSystems/nix-installer
- Cu3PO42 3y agoI 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/modules/darwin/chsh/default.nix https://github.com/Cu3PO42/gleaming-glacier/blob/master/modu...