# Custom store location

**URL:** https://discourse.nixos.org/t/custom-store-location/9663
**Category:** Help
**Created:** [October 27, 2020, 7:57am UTC](https://discourse.nixos.org/t/custom-store-location/9663 "2020-10-27T07:57:36Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![xfix](https://discourse.nixos.org/user_avatar/discourse.nixos.org/xfix/32/1690_2.png) [@xfix](https://discourse.nixos.org/u/xfix)
#### Post date: [October 27, 2020, 8:25am UTC](https://discourse.nixos.org/t/custom-store-location/9663/2 "2020-10-27T08:25:08Z")

</div>

I wouldn’t recommend moving store from `/nix/store` as this would prevent cache usage and I think some packages incorrectly assume `/nix/store` is the store path.

This can be done, but considering you want to move /nix/store to another partition rather than say need multiple stores for whatever reason, you may consider mounting location on your another partition to nix store.

```sh
mount --bind /path/to/nix /nix

```

It’s also possible to use btrfs subvolumes or zfs datasets if you use those particular file systems.

---

_[View the full topic](https://discourse.nixos.org/t/custom-store-location/9663)._
