On macOS system-profile.switch doesn't load nix into environment #7

Closed
opened 2024-03-25 03:10:56 +00:00 by emilytrau · 5 comments
Member

On a macOS system created with Determinate Installer. After running sudo nix run .#system-profile.switch and starting a new terminal, nix is not found. The following snippet in /etc/zshrc is responsible.

# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
    . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix

It's expecting a nix-daemon.sh script alongside the nix.sh that is installed

$ ls /nix/var/nix/profiles/default/etc/profile.d/
nix.fish nix.sh
On a macOS system created with Determinate Installer. After running `sudo nix run .#system-profile.switch` and starting a new terminal, `nix` is not found. The following snippet in `/etc/zshrc` is responsible. ``` # Nix if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' fi # End Nix ``` It's expecting a `nix-daemon.sh` script alongside the `nix.sh` that is installed ``` $ ls /nix/var/nix/profiles/default/etc/profile.d/ nix.fish nix.sh ```
Owner

the fuck, i fixed that bug

the fuck, i fixed that bug
Owner

can you try updating the lix version you are running?

can you try updating the lix version you are running?
Author
Member

I'm not running lix yet. It seems to be an issue converting from my existing install?

I'm not running lix yet. It seems to be an issue converting from my existing install?
Owner

I found the CL, it seems that it got lost in review and then I forgot about it? Anyway, one self-merge later...

I found the CL, it seems that it got lost in review and then I forgot about it? Anyway, one self-merge later...
jade closed this issue 2024-03-25 04:18:22 +00:00
Author
Member

Thanks!

Thanks!
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/nixos-module#7
No description provided.