This is something you might want to do if you have an existing store directory on another dataset but don't want to overlay mount it onto /nix/store
.
~/shell.nix
is
{
pkgs ? import <nixpkgs> {
overlays = [
(self: super: {
nix = super.nix.override {