Install nix to custom location

Hi all -
I’m just getting started, and have an issue on my Arch linux machine with ‘only’ 5G left in my root partition. I have 150G available in another partition - but how can I install nix there?

The instructions say to run

sh <(curl -L https://nixos.org/nix/install) 

but this seems to insist that I have /nix. I could mount some storage to /nix but that seems like overkill. Can’t I just tell it to install to a location of my choice?

Thanks for your help!

I got some help over on the nix forum, and the solution is to mount your custom location to /nix/store:

mount --bind /custom/location/nix/store /nix/store

I did move across all the files dumped in /nix/store (after initially installing nix) before mounting, and it seems to work ok from there.