I sometimes need to run nix builds that require a bunch of storage or a different set of cached paths than what I like to carry around in my primary system nix store. For that purpose, I’ve usually used NIX_REMOTE=...
to use the other location.
That however has the downside that it runs builds without a sandbox as my user which I don’t want.
Is there a way to have another nix-daemon that runs the same config as the primary one but uses some other path as its base? Or make the primary nix-daemon able to use trust multiple paths as its Nix store?
Note that I don’t want a different store prefix for derivation purposes; that should remain /nix/store/
! Only --store
/NIX_REMOTE
should change.