Asahi Nixos on external drive

Hi,

I’m back after some trials and errors.
I decided to forget about asahi for now and first have a working setup for nix on MacOS with external store.

Found that thread and was able to install nix and its store on the external drive. However I’m facing issues when unplugging my drive (to transport the computer for example).

When the external drive is unplugged then plugged back, all nix commands are failing with a “cannot connect to socket” error and I need to reboot to fix the issue.

I feel like its a nix daemon related issue, as the socket is in the /nix partition, maybe the daemon can’t find it after a disk unplug. Is there a way to manually restart the daemon without restarting my entire system ?