Describe the bug
I first installed nix from nix-installer before running the nixos.org curl command to install. I'm running all this on a macOS machine. At the step:
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/sbin/diskutil unmount force Nix Store
to unmount the encrypted volume
Volume Nix Store on disk3s7 force-unmounted
the terminal froze, cpu usage spiked and i had to kill the process. I believe what happened was:
- nix-installer made an unencrypted "Nix Store" volume and a plain diskutil mount launchd job, and a fstab line
- this curl does not refuse to run over that because its "already installed" check is a warning that keys off nix-env being on PATH, and my machine didn't
- so it found the existing volume, saw file vault installed on but the volume unencrypted, and asked whether to encrypt it
- it then generated a random password and stored it in the System keychain
- diskutil apfs encryptVolume on said store, and force-unmounted it
- it then reached the polling for /nix to come back, but nothing remounted an encrypted volume, so it just stalled
Steps To Reproduce
- macOS 15, FileVault on install Nix with nix-installer
- Run
sh <(curl -L https://nixos.org/nix/install).
- Answer yes to "Should I encrypt it and add the decryption key to your keychain?".
- Observe.
Expected behavior
Either refuse to run on a system installed by nix-installer, OR repair the existing volume without breaking its mount configuration, fail fast with a message when the volume does not come back, and then handle a root-only synthetic.conf.
Metadata
nix-env --version: 2.35.2 installer over an existing 2.35.1 (nix-installer) install
- macOS 15 (Darwin 25.1.0), aarch64-darwin
Describe the bug
I first installed nix from nix-installer before running the nixos.org curl command to install. I'm running all this on a macOS machine. At the step:
the terminal froze, cpu usage spiked and i had to kill the process. I believe what happened was:
Steps To Reproduce
sh <(curl -L https://nixos.org/nix/install).Expected behavior
Either refuse to run on a system installed by nix-installer, OR repair the existing volume without breaking its mount configuration, fail fast with a message when the volume does not come back, and then handle a root-only
synthetic.conf.Metadata
nix-env --version: 2.35.2 installer over an existing 2.35.1 (nix-installer) install