Like many, I ran out of space on my Mac and decided to move the nix store to an external drive. First, I followed the guide here: https://discourse.nixos.org/t/how-to-move-nix-store-to-external-drive-on-macos/19592/10
This ended up exhibiting the same behaviour I have now, reproduced by:
- Installing Lix on a separate drive
- Installing nix-darwin and switching to my config
What I see is that org.nixos.activate-system fails with exit code 126. I am not sure if this service is installed by nix-darwin or Lix.
This service runs the command /bin/sh -c "/bin/wait4path /nix/store && exec /nix/store/67sq1xa1zmrngm8bnjxr8025lb6ddgfi-activate-system-start", which if I run manually as root, works. It only fails when launchd runs it.
This causes /run/current-system to be absent. Everything else seems to work (/nix is mounted)
Also, tailscaled also fails, with exit code 1. Not sure if this is a seperate issue, but it coincides with placing the nix store on an external drive.
All login items (the sh items) are enabled. There are 4 of them. Nix has full disk access.
Like many, I ran out of space on my Mac and decided to move the nix store to an external drive. First, I followed the guide here: https://discourse.nixos.org/t/how-to-move-nix-store-to-external-drive-on-macos/19592/10
This ended up exhibiting the same behaviour I have now, reproduced by:
What I see is that
org.nixos.activate-systemfails with exit code 126. I am not sure if this service is installed by nix-darwin or Lix.This service runs the command
/bin/sh -c "/bin/wait4path /nix/store && exec /nix/store/67sq1xa1zmrngm8bnjxr8025lb6ddgfi-activate-system-start", which if I run manually as root, works. It only fails when launchd runs it.This causes
/run/current-systemto be absent. Everything else seems to work (/nix is mounted)Also, tailscaled also fails, with exit code 1. Not sure if this is a seperate issue, but it coincides with placing the nix store on an external drive.
All login items (the sh items) are enabled. There are 4 of them. Nix has full disk access.