/nix/store requires root to create on many Linux systems, requiring Nix users to contact their sysadmin in order to locally use Nix.
/nix/store's location also makes installation very difficult on macOS Catalina.
I propose, in the global nixpkgs cache, building packages with a path like
/nix/store/././././././././. Systems using a custom Nix store path, if short enough, could simply replace that longer aforementioned path in downloaded binaries, allowing users to take advantage of the global Nix cache while using a custom location for the local nix store. Credits for inspiration.
This is definitely hacky, and it would place restrictions on local nix store locations before caching stops working. Maybe symlinks could help here (e.g. symlink some hidden filder with a special path length to the user’s custom store location).
I thought I’d post the idea here in case it’s worth something.