DeterminateSystems / zero-to-nix

Zero to Nix is your guide to learning Nix and flakes. Created by Determinate Systems.

Home Page:https://zero-to-nix.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Determinate Installer Errors on Install Nix

Hygens opened this issue · comments

I'm attempting install Nix via Determinate installer on MacOSX Sonoma 14.4.1 Intel i9, but get:

 Planned actions:
* Create an APFS volume `Nix Store` for Nix on `disk1` and add it to `/etc/fstab` mounting on `/nix`
* Fetch `https://releases.nixos.org/nix/nix-2.20.5/nix-2.20.5-x86_64-darwin.tar.xz` to `/nix/temp-install-dir`
* Create a directory tree in `/nix`
* Move the downloaded Nix into `/nix`
* Create build users (UID 301-332) and group (GID 30000)
* Configure Time Machine exclusions
* Setup the default Nix profile
* Place the Nix configuration in `/etc/nix/nix.conf`
* Configure the shell profiles
* Configuring zsh to support using Nix in non-interactive shells
* Create a `launchctl` plist to put Nix into your PATH
* Configure Nix daemon related settings with launchctl
* Remove directory `/nix/temp-install-dir`


Proceed? ([Y]es/[n]o/[e]xplain): y
 INFO Step: Create an APFS volume `Nix Store` for Nix on `disk1` and add it to `/etc/fstab` mounting on `/nix`
 INFO Step: Provision Nix
 INFO Step: Create build users (UID 301-332) and group (GID 30000)
 INFO Step: Configure Time Machine exclusions
 INFO Step: Configure Nix
 INFO Step: Configuring zsh to support using Nix in non-interactive shells
 INFO Step: Create a `launchctl` plist to put Nix into your PATH
 INFO Step: Configure Nix daemon related settings with launchctl
 INFO Step: Remove directory `/nix/temp-install-dir`
 WARN SelfTest([ShellFailed { shell: Zsh, command: "\"zsh\" \"-ic\" \"nix build --no-link --expr 
 \\'derivation { name = \\\"self-test-zsh-1713357973153\\\"; system = \\\"x86_64-darwin\\\"; 
 builder = \\\"/bin/sh\\\"; args = [\\\"-c\\\" \\\"echo hello > \\\\$out\\\"]; }\\'\"", 
 output: Output { status: ExitStatus(unix_wait_status(32512)), stdout: "", stderr: 
 "zsh:1: command not found: nix\n" } }])
Nix was installed successfully!
To get started using Nix, open a new shell or run 
`. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh`

Too nix not work with "command not found".

My workaround was include that on my home profile:
export PATH="$PATH:/nix/var/nix/profiles/default/bin"

Please i need help to correct that problem.