Hi All,
tldr; Nix was able to install into MacOs but is not available in my path. Attempted to reinstall but that fails and I am unsure how to get nix
in my path or even access the nix
runner.
I started the download process in my shell here:
$ sh <(curl -L https://nixos.org/nix/install)
- Download successful
- Y, more detail
- Y, continue
- Y, use sudo
- Found previous install, able to verify :
~~> Fixing any leftover Nix volume state
Before I try to install, I'll check for any existing Nix volume config
and ask for your permission to remove it (so that the installer can
start fresh). I'll also ask for permission to fix any issues I spot.
---- Found existing Nix volume -------------------------------------------------
special: disk3s7
uuid: 1F371385-73FF-4054-86DC-6271A5C74750
encrypted: yes
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo security find-generic-password -s 1F371385-73FF-4054-86DC-6271A5C74750 -w
to confirm keychain has a password that unlocks this volume
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/sbin/diskutil apfs unlockVolume disk3s7 -verify -stdinpassphrase -user 1F371385-73FF-4054-86DC-6271A5C74750
to confirm the password actually unlocks the volume
Verifying the specific cryptographic user 1F371385-73FF-4054-86DC-6271A5C74750 on APFS Volume disk3s7
Passphrase valid
Found a working decryption password in keychain :)
- then fails:
~~> Checking for artifacts of previous installs
Before I try to install, I'll check for signs Nix already is or has
been installed on this system.
---- oh no! --------------------------------------------------------------------
I back up shell profile/rc scripts before I add Nix to them.
I need to back up /etc/bashrc to /etc/bashrc.backup-before-nix,
but the latter already exists.
Here's how to clean up the old backup file:
1. Back up (copy) /etc/bashrc and /etc/bashrc.backup-before-nix
to another location, just in case.
2. Ensure /etc/bashrc.backup-before-nix does not have anything
Nix-related in it. If it does, something is probably quite
wrong. Please open an issue or get in touch immediately.
3. Once you confirm /etc/bashrc is backed up and
/etc/bashrc.backup-before-nix doesn't mention Nix, run:
mv /etc/bashrc.backup-before-nix /etc/bashrc
We'd love to help if you need it.
You can open an issue at https://github.com/nixos/nix/issues
Or feel free to contact the team:
- Matrix: #nix:nixos.org
- IRC: in #nixos on irc.libera.chat
- twitter: @nixos_org
- forum: https://discourse.nixos.org
this concerns me, as a new users I am lost on how to approach this:
...
2. Ensure /etc/bashrc.backup-before-nix does not have anything
Nix-related in it. If it does, something is probably quite
wrong. Please open an issue or get in touch immediately.
...
It seems i just need to find a way to either access the nix
runner or add it to my path for ZSH.
Any help would be appreciated as I am unsure on how to proceed.